This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash misbehavior


At 12:06 AM 9/29/2004 -0400, Christopher Faylor wrote:

>This command would show an occurrence of a pgid that has no associated
>pid.
>
>  echo hello | (sleep 20; cat)&
>
>On linux you can see the effect, like this:
>
>  bash-2.05b$ echo hello | (sleep 20; cat)&
>  [1] 7192
>  bash-2.05b$ ps -o '%p%u%r%y%a'
>   or http://procps.sf.net/faq.html
>    PID RUSER     PGID TTY      COMMAND
>  25248 cgf      25248 pts/45   -zsh
>   6863 cgf       6863 pts/45   bash
>   7192 cgf     >>7191 pts/45   bash
>   7193 cgf     >>7191 pts/45   sleep 20
>
>I guess the left side of a pipe exiting before the right is the norm.

Right. And that's why the new test in fhandler_termios::tcsetpgrp
could possibly fail when it shouldn't.

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]