bash misbehavior

Pierre A. Humblet Pierre.Humblet@ieee.org
Wed Sep 29 03:39:00 GMT 2004


At 11:19 PM 9/28/2004 -0400, Christopher Faylor wrote:
>On Tue, Sep 28, 2004 at 11:08:56PM -0400, Pierre A. Humblet wrote:
>>Yep, that would work too, but it's costly. In bash there is a new
>>process group leader for every command/pipeline
>>I will leave this issue simmer for a while.
>
>But does the process group leader always go away?  I would think that
>would be a pretty odd case.

Unfortunately yes, they only last for the duration of a command/pipeline.
The process group is used as a command/pipeline/job identifier.
A lonely ps is a group leader:
~: ps
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
   631139       1  631139 4294336157  con  740 22:56:00 /c/PROGRAM
FILES/CYGWIN/BIN/RXVT
   607931  631139  607931 4294382649    0  740 22:56:00 /c/PROGRAM
FILES/CYGWIN/BIN/BASH
   620183  607931  620183 4294347869    0  740 23:33:11 /usr/bin/ps

Pierre



More information about the Cygwin-developers mailing list