RE: ctrl-c does not send INT to all processes under foreground job

2014-03-19 Thread Ryan Ruan
bash@gnu.org Cc: chet.ra...@case.edu Subject: Re: ctrl-c does not send INT to all processes under foreground job On 3/19/14 12:07 AM, Ryan Ruan wrote: > Hello, guys: > > It is said that "ctrl-C sends INT to ALL processes under foreground job", but > i found a weird phenomenon. >

Re: ctrl-c does not send INT to all processes under foreground job

2014-03-19 Thread Stephane Chazelas
2014-03-19 09:51:06 -0400, Chet Ramey: [...] > This is another instance of the question "what does bash do with a SIGINT > it receives while waiting for a foreground process?" The answer is that it > allows the child to decide what to do and responds accordingly: if the > child exits due to being

Re: ctrl-c does not send INT to all processes under foreground job

2014-03-19 Thread Chet Ramey
On 3/19/14 12:07 AM, Ryan Ruan wrote: > Hello, guys: > > It is said that "ctrl-C sends INT to ALL processes under foreground job", but > i found a weird phenomenon. > I have not read source code yet, but it does not seem to ascribe to what > specification says. > > Test code is like: > > 1

Re: ctrl-c does not send INT to all processes under foreground job

2014-03-19 Thread Stephane Chazelas
2014-03-19 04:07:06 +, Ryan Ruan: [...] > It is said that "ctrl-C sends INT to ALL processes under foreground job", but > i found a weird phenomenon. > I have not read source code yet, but it does not seem to ascribe to what > specification says. > > Test code is like: > > 1 tr

ctrl-c does not send INT to all processes under foreground job

2014-03-18 Thread Ryan Ruan
Hello, guys: It is said that "ctrl-C sends INT to ALL processes under foreground job", but i found a weird phenomenon. I have not read source code yet, but it does not seem to ascribe to what specification says. Test code is like: 1 trap "echo hello world $1" 2 2 slee