This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/14484] sem_timedwait always return -1 with errno 110 (ETIMEDOUT).
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 21 Aug 2012 13:15:03 +0000
- Subject: [Bug nptl/14484] sem_timedwait always return -1 with errno 110 (ETIMEDOUT).
- Auto-submitted: auto-generated
- References: <bug-14484-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14484
--- Comment #7 from Rich Felker <bugdal at aerifal dot cx> 2012-08-21 13:15:03 UTC ---
Your signal handler is not installed to be interrupting, so if sem_timedwait
returns with EINTR (which it _DOES_ do on some/most Linux versions), that's a
bug in the kernel. The expected result is ETIMEDOUT.
Perhaps you expect signal() to have the legacy sysv behavior of installing
interrupting signal handlers. This is not the case on glibc. If you want
interrupting behavior, you must use sigaction() and omit the SA_RESTART flag.
I still don't see any bug.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.