setsid not found on freebsd

2011-02-14 Thread Ashish Mahamuni
I am using FreeBSD 8.1. I am doing some automation stuff and running shell scripts remotely using setsid command. It seems that I do not have setsid on my system. Also, searched in /usr/ports for installation but no luck. Could you please tell me the way to install this command or may be the alte

Re: setsid not found on freebsd

2011-02-14 Thread Garrett Cooper
On Sun, Feb 13, 2011 at 11:46 PM, Ashish Mahamuni wrote: > I am using FreeBSD 8.1. > I am doing some automation stuff and running shell scripts remotely using > setsid command. > > It seems that I do not have setsid on my system. Also, searched in > /usr/ports for installation but no luck. > > Cou

Re: setsid not found on freebsd

2011-02-14 Thread Ashish Mahamuni
Thanks for the reply !! Garrett, Its a command available in Linux distros. Peter, I am not able to find "util-linux-ng" under my ports. Anyways, I have found something called "detach", which eventually worked for me. --Ashish On Mon, Feb 14, 2011 at 2:23 PM, Peter Pentchev wrote: > On Mon, F

Re: setsid not found on freebsd

2011-02-14 Thread Peter Pentchev
On Mon, Feb 14, 2011 at 12:32:21AM -0800, Garrett Cooper wrote: > On Sun, Feb 13, 2011 at 11:46 PM, Ashish Mahamuni > wrote: > > I am using FreeBSD 8.1. > > I am doing some automation stuff and running shell scripts remotely using > > setsid command. > > > > It seems that I do not have setsid on m

map share memory to kernel space

2011-02-14 Thread beezarliu
Hackers, I want to access a userland share memory in a kernel thread. So I tried to map the share memory to the kernel space. The basic idea is to map the shm_object into kernel_map when the share memory is created. Using the following patch, I found the vm_object in kernel_map, and the vm_obje

Re: setsid not found on freebsd

2011-02-14 Thread Garrett Cooper
On Mon, Feb 14, 2011 at 1:09 AM, Ashish Mahamuni wrote: > Thanks for the reply !! > Garrett, > Its a command available in Linux distros. > Peter, > I am not able to find "util-linux-ng" under my ports. > Anyways, I have found something called "detach", which eventually worked for > me. Ok. So

Re: setsid not found on freebsd

2011-02-14 Thread Garrett Cooper
On Mon, Feb 14, 2011 at 1:38 AM, Garrett Cooper wrote: > On Mon, Feb 14, 2011 at 1:09 AM, Ashish Mahamuni > wrote: >> Thanks for the reply !! >> Garrett, >> Its a command available in Linux distros. >> Peter, >> I am not able to find "util-linux-ng" under my ports. >> Anyways, I have found someth

Re: setsid not found on freebsd

2011-02-14 Thread Mike Meyer
On Mon, 14 Feb 2011 14:39:28 +0530 Ashish Mahamuni wrote: > Thanks for the reply !! > > Garrett, > Its a command available in Linux distros. Yup. The linux folks seem to have gone on a campaign to make many syscalls available as shell commands - this being one of them. > Peter, > I am not able

Re: man 3 getopt char * const argv[] - is const wrong ?

2011-02-14 Thread Matthias Andree
Am 14.02.2011 03:41, schrieb Julian H. Stacey: Well, instead of ranting, An inadvisable epithet ! Maybe you never had the luxury of working when one could buy a slim K&R,& it was all one needed. Now ISO sell standards, Not all free download. For C I've only found enormous PDFs. Some downlo

Re: map share memory to kernel space

2011-02-14 Thread John Baldwin
On Monday, February 14, 2011 4:18:50 am beezarliu wrote: > Hackers, > > I want to access a userland share memory in a kernel thread. > So I tried to map the share memory to the kernel space. > The basic idea is to map the shm_object into kernel_map > when the share memory is created. > > Using

Re: map share memory to kernel space

2011-02-14 Thread Ryan Stone
Is your goal just to share memory between userland applications and the kernel? Can the kernel allocate the memory? If so, the easiest way to share memory would be to create a device under /dev and have the userland application mmap it. ___ freebsd-hack

Re: setsid not found on freebsd

2011-02-14 Thread Tilman Keskinöz
On Feb 14, 2011, at 08:46 , Ashish Mahamuni wrote: > I am using FreeBSD 8.1. > I am doing some automation stuff and running shell scripts remotely using > setsid command. > > It seems that I do not have setsid on my system. Also, searched in > /usr/ports for installation but no luck. > > Could

Re: memstick.img is bloated with 7% 2K blocks of nulls

2011-02-14 Thread Julian H. Stacey
> But from the manual page: > > -f file > Filename to use for the vnode type memory disk. Options -a > and -t vnode are implied if not specified. > > So if you specify -f then you get -t vnode automatically. Ah yes. Reading src/sbin/mdconfig/mdconfig.c with your "mdconfig -a -f mfsroo

Re: Scheduler question

2011-02-14 Thread Daniel O'Connor
On 11/02/2011, at 6:58, Matthew Dillon wrote: > It sounds like there are at least two issues involved. > > The first could be a buffer cache starvation issue due to the load on > the filesystem from the tar. If the usb program is doing any filesystem > operation at all, even at low bandw

Re: man 3 getopt char * const argv[] - is const wrong ?

2011-02-14 Thread Julian H. Stacey
> I understand the concerns about licensing, yet I see standards as > reference material, ISO products are not standard when ISO restricts access by charging fees so they're not freely distributable to all individual programmers for reference in free software developer communities. Only draft IS

[PATCH] fix impossible case with waitpid(2) in truss

2011-02-14 Thread Garrett Cooper
Hi, waitpid(2) returns a value in the set { -1, 0, } (-1 in the event of an ERROR, 0 when WNOHANG is specified, when the process exits according to wait(2)); it never returns a value < -1. If someone could commit this patch it would be appreciated. Thanks, -Garrett Index: usr.bin/truss/se

Re: Re: map share memory to kernel space

2011-02-14 Thread beezarliu
On 2011-02-14 22:56:28, John Baldwin wrote: >On Monday, February 14, 2011 4:18:50 am beezarliu wrote: >> Hackers, >> >> I want to access a userland share memory in a kernel thread. >> So I tried to map the share memory to the kernel space. >> The basic idea is to map the shm_object into kernel_m

Re: Re: map share memory to kernel space

2011-02-14 Thread beezarliu
On 2011-02-15 00:14:39, Ryan Stone wrote: >Is your goal just to share memory between userland applications and >the kernel? Can the kernel allocate the memory? If so, the easiest >way to share memory would be to create a device under /dev and have >the userland application mmap it. I'm too lazy

Re: setsid not found on freebsd

2011-02-14 Thread jhell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 14 Feb 2011 16:37, arved@ wrote: On Feb 14, 2011, at 08:46 , Ashish Mahamuni wrote: I am using FreeBSD 8.1. I am doing some automation stuff and running shell scripts remotely using setsid command. It seems that I do not have setsid on