Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 6 Dec 2018 20:31:11 +0000
From: Orivej Desh <>
Subject: Re: sem_wait and EINTR

* Markus Wichmann <> [2018-12-06]
> Hi all,
> is the attached patch acceptable? A word about the bitfields: I
> generally dislike them for most things, but I didn't want to destroy the
> alignment struct __libc had going on, and these other flags really only
> are 0 or 1.
> Patch is untested for want of an old kernel.

Thank you! I have checked that your patch works as intended.
I have emulated an old kernel with this:

--- a/src/thread/__timedwait.c
+++ b/src/thread/__timedwait.c
@@ -28 +28 @@ int __timedwait_cp(volatile int *addr, int val,
-	r = -__syscall_cp(SYS_futex, addr, FUTEX_WAIT|priv, val, top);
+	r = EINTR;

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.