Subject: 1.5.11: resuming a suspended sleep results in undelivered signal 19
From: "Bogdan Vacaliuc" <[email-masked]>
To: <[email-masked]>
Date: Mon, 20 Sep 2004 00:13:12 -0400

Greetings,

Pierre Humblet discovered this and since I had a trace of it, encouraged me to post it.

A suspended sleep call is resumed, but does not exit at the expiration time.

$ sleep 20
^Z
[1]+  Stopped                 sleep 20
$ fg
sleep 20

...forever...

In a separate shell, the sleep is straced after it is started but before the ^Z is performed.  (see also attached)

<snip>
  146 16802759 [sig] sleep 4236 interruptible: pc 0x77F8287E, h 0x77F80000, interruptible 0
   70 16802829 [sig] sleep 4236 setup_handler: couldn't interrupt.  trying again.
   83 16802912 [sig] sleep 4236 setup_handler: signal 19 not delivered
   69 16802981 [sig] sleep 4236 sigpacket::process: returning 0
<snip>

Curious.

Possible tie-in with this thread:
http://sources.redhat.com/ml/cygwin/2004-09/msg00818.html

Best Regards,

-bogdan
--
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/