Bug 4627

Summary: wait does not wake
Product: [Retired] Red Hat Linux Reporter: scottc
Component: glibcAssignee: Cristian Gafton <gafton>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-20 12:23:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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. ***