[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHk-=wg2MC-MOmWa5wy-djNm+FCj6s4484UFncprHZ=--ZGVpg@mail.gmail.com>
Date: Sat, 4 Sep 2021 11:21:17 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [possible bug] missed wakeup in do_sigtimedwait()?
On Sat, Sep 4, 2021 at 11:13 AM Al Viro <viro@...iv.linux.org.uk> wrote:
>
> Thanks. AFAICS, it's this logics in __schedule():
> if (signal_pending_state(prev_state, prev)) {
> WRITE_ONCE(prev->__state, TASK_RUNNING);
Exactly. As you note, it also handles the WAKEKILL case which is
basically equivalent (just for the "I can't take normal signals, but
I'm ok dying" case)
Linus
Powered by blists - more mailing lists