Re: [PATCH 2/3] ipc/sem.c: handle spurious wakeups

From: Andrew Morton
Date: Tue Oct 11 2011 - 17:54:46 EST


On Sat, 24 Sep 2011 19:37:11 +0200
Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> wrote:

> semtimedop() does not handle spurious wakeups, it returns -EINTR to user space.
> Most other schedule() users would just loop and not return to user space.
> The patch adds such a loop to semtimedop()

What is a "spurious wakeup" and how can a process receive one?

I'm wondering about the userspace-visible effects of this change, and
any compatibility issues?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/