This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Sleep not terminating
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 14 Oct 2005 12:36:55 -0700
- Subject: Sleep not terminating
- Reply-to: cygwin at cygwin dot com
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/