Sleep not terminating

David Rothenberger daveroth@acm.org
Fri Oct 14 19:37:00 GMT 2005


I'm encountering a weird problem with sleep.

If I run

$ while true; do sleep 120; done &
[1] 6780
$ kill %1

the bash process (6780) and its child sleep process are both killed.

However, if I kill the bash process using the pid, the child sleep 
process is not killed.

$ while true; do sleep 120; done &
[1] 5528
$ kill 5528
$ ps -ef | grep sleep
   drothe    6532       1   0  12:26:41 /bin/sleep

I guess this problem has been around for a while. I'm seeing it with the 
latest snapshot and also with 1.5.18, with the latest bash and the test 
bash.

-- 
David Rothenberger                spammer? -> spam@daveroth.dyndns.org
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734

(null cookie; hope that's ok)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list