Bug 4627 - wait does not wake
Summary: wait does not wake
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 6.0
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
Keywords:
: 8908 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-08-20 14:48 UTC by scottc
Modified: 2008-05-01 15:37 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 1999-09-20 12:23:46 UTC


Attachments (Terms of Use)

Description scottc 1999-08-20 14:48:18 UTC
The system call wait does not get interupted from a sig
alarm, sigusr1. It only ever seems to return when a child
process dies, or a sig kill/int is received. The man page
details that the wait call should return when the process
receives a signal that is being caught is sent, as well as
the sig kill/int signals.
The code was ported from HP-UX and it works correctly there,
along with Solaris.
If you require i have some sample code that proves the
problem. Is this a known bug, and if so is there a patch ??

Comment 1 Jeff Johnson 1999-08-21 14:45:59 UTC
Could you supply a program that exhibits this problem? Thanks.

Comment 2 Cristian Gafton 1999-08-30 02:06:59 UTC
changed priorities to low/low until a test case is supplied.

Comment 3 Cristian Gafton 1999-09-20 12:23:59 UTC
test case supplied. the test was using signal() to set the signal
handlers, but by default those signals will have the SA_RESTART flag
associated, so the system calls were automatically restarted. One
should use sigaction for this type of very fine control (and it also
clears things up when it comes to race conditions)

Comment 4 Cristian Gafton 2000-01-27 08:03:59 UTC
*** Bug 8908 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.