[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Process management



Arun Sharma wrote:
> 
> On Sat, Mar 25, 2000 at 03:02:48PM +0530, Linac Project Team wrote:
> > > > Does any one out there know of any system call using which the root can
> > > > claim a process to be his own.
> > >
> > > Not that I know of. Can you not do what you want to without becoming the
> > > owner of the process ?
> >
> > The thing is that I want to make the process under question a group
> > leader. This separates it from a tty and hence it won't terminate even if
> > the user disconnects.
> 
> man nohup
> 
>         -Arun
> 
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/


also check setpgrp() - better still read the section on daemons in
stevens' unix n/w pgmming.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d@ s+:- a-- C++++ ULS+++$ P+ L+++$>+++++		| Free your mind
E->E W+>++ !N>++ o? k? w--- !O !M V? !PS !PE Y+		| - The truth is
PGP- t- 5? X R tv+ b+ DI D+++ G++ e++ h !r !y+		| out there!
------END GEEK CODE BLOCK------