Re: "Terminated" message from kill

2008-10-01 Thread Glenn Morris
Chet Ramey wrote: > This is a classic race condition. I see. Thanks for the explanation.

Re: "Terminated" message from kill

2008-10-01 Thread Chet Ramey
Glenn Morris wrote: > Hi, > > This is a question similar to one from September 2006: > > http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html > > > Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents: > > > function bar () > { > sleep 10 & > pid=$! > exe

"Terminated" message from kill

2008-09-30 Thread Glenn Morris
Hi, This is a question similar to one from September 2006: http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents: function bar () { sleep 10 & pid=$! exec 3>&2 2>/dev/null kill $pid #usleep 1