lkml.org 
[lkml]   [2003]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] Kernel thread signal handling.
From
Date
On Mon, 2003-10-13 at 05:11 -0700, Andrew Morton wrote:
> > daemonize("jffs2_gcd_mtd%d", c->mtd->index);
>
> And then what? Parse the output of ps(1)? Use pidof(8)?

Those work.

> Insufficient contrition detected :)

Hehe.

> Why cannot a procfs or sysfs control be used?

Mostly because I think that idea sucks, and partly because I think your
ire is misdirected -- it shouldn't be directed at kernel code which
handles signals, but rather at kernel code which sleeps in state
TASK_INTERRUPTIBLE but _doesn't_ handle signals.

On the other hand, if you ever find people actually trying to pass
_data_ to kernel threads with sys_rt_sigqueueinfo(), I'll be right
behind you with my own baseball bat waiting to bash the pieces you leave
behind :)

--
dwmw2

-
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 13:49    [W:0.069 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site