On 6/2/09, Kay Sievers <kay.sievers@xxxxxxxx> wrote: > On Mon, Jun 1, 2009 at 21:39, Kay Sievers <kay.sievers@xxxxxxxx> wrote: >> On Mon, Jun 1, 2009 at 18:24, Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> >> wrote: >> >>> I don't think the signal handler should be doing list traversal, in case >>> it >>> interrupts list manipulation in the main loop. Or perhaps the main loop >>> should only allow signals during ppoll(). >> >> Make sense. we can block them during list mangling, or just go for >> signalfd, and convert all the signal handling to it. > > Here is a version that uses signalfd(), and a socketpair() from the > workers to pass data back. Same numbers so far, but the code looks a > lot simpler. > > Kay Yes, that looks great. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html