gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does NSTask setpgrp on sub processes?


From: Derek Fawcus
Subject: Re: why does NSTask setpgrp on sub processes?
Date: Wed, 20 Jan 2010 05:44:19 -0800
User-agent: Mutt/1.4.2.3i

Actually,  I believe OSX (10.4.11 anyway) calls setsid() not setpgrp().
However,  setsid() also causes a new process group to be created.

Using the supplied program,  but running /bin/cat and then examining with
'ps ajx' I see:

User       PID  PPID  PGID    SESS JOBC STAT  TT     TIME COMMAND
derek    23944  5422 23944 15d65bc    1 S+    p1  0:00.03 ./task
derek    23945 23944 23945 15d5d1c    0 Ss    ??  0:00.00 /bin/cat

So the child process is in a new session,  hence a new process group,
and also has no controlling tty.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]