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.



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to