lkml.org 
[lkml]   [2004]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kthread, signals and PF_FREEZE (suspend)
From
Date
Am Mo, den 16.02.2004 schrieb Jamie Lokier um 17:53:

> Rusty Russell wrote:
> > > That means that signal_pending() will return true for that process which
> > > will make kthread stop the thread.
> >
> > Yes, the way they are currently coded. I had assumed that spurious
> > signals do not occur.
>
> Yowch. Does suspend mean this warning in futex_wait is wrong?
>
> /* A spurious wakeup should never happen. */
> WARN_ON(!signal_pending(current));
> return -EINTR;

I just tried it on my notebook. It works, no warning.

I don't know how things work exactly. There is some stuff in the arch
signal.c in do_signal that also handles PF_FREEZE.


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

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.050 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site