Re: [RFC][PATCH] Kernel thread signal handling.

From: David Woodhouse
Date: Mon Oct 13 2003 - 07:32:00 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/