]> git.hungrycats.org Git - linux/commit
[PATCH] Remove redundant code in workqueue.c
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 13:09:46 +0000 (05:09 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:09:46 +0000 (05:09 -0800)
commitef03c46d0491c543a5c178fe5689e8eed9c03493
treec2156a172469b61e5ae7ccfc905c33434250aac7
parentc8800d33921af03b30e3e5bbb11e8d70e2a75326
[PATCH] Remove redundant code in workqueue.c

From: Rusty Russell <rusty@rustcorp.com.au>

It turns out that run_workqueue never has signal_pending(), since setting
the handler to SIG_IGN means "don't make zombies, I'm ignoring them".  Fix
the comment, don't allow the signal, and remove the unused waitpid loop.

This also allows simpler conversion of workueues to the kthread mechanism,
which uses signals to indicate it's time to stop.
kernel/workqueue.c