This is the mail archive of the cygwin 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]

Sleep not terminating


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/


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