Re: [PATCH] signals: work around random wakeups in sigsuspend()

From: Peter Zijlstra
Date: Wed Jan 27 2016 - 12:54:38 EST


On Wed, Jan 27, 2016 at 05:41:54PM +0100, Oleg Nesterov wrote:
> Why? It should work either way. Yes, signal_wakeup() can come right before
> __set_current_state(TASK_INTERRUPTIBLE) but this is fine, __schedule() must not
> sleep if signal_pending() == T,


Urgh yes, I always forget this :/