This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug nptl/14484] sem_timedwait always return -1 with errno 110 (ETIMEDOUT).


http://sourceware.org/bugzilla/show_bug.cgi?id=14484

--- Comment #3 from tingweiliu <tingw.liu at gmail dot com> 2012-08-17 06:25:45 UTC ---
(In reply to comment #1)
> What output do you expect? Your test program is never posting the semaphore, so
> of course it's going to timeout. Actually when running it I get EINTR rather
> than ETIMEDOUT; I'm using a fairly old kernel so perhaps they fixed the kernel
> bug where timed semaphores error out with EINTR when receiving a signal instead
> of properly restarting the syscall.

The abstimeout is correct (not earlier than now), so it should not return errno
110 (ETIMEDOUT).

Thanks!

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


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