Sean Boudreau(deleted)
|
Re: Use of signal() in nw_pthreads
|
Sean Boudreau(deleted)
11/11/2008 9:43 AM
post16383
|
Re: Use of signal() in nw_pthreads
On Tue, Nov 11, 2008 at 06:50:20AM -0500, John Murphy wrote:
> While trying to learn how to build a removable lsm (which turned into learning how to build a removable driver), I
noticed that each instance of nw_pthread_create() calls signal() to establish a signal handler for the signal dropped by
the quiesce_callout(). But there is only one signal handler per process, so the last call to nw_pthread_create sets
the signal handler for all the threads! And the signal handler in ppp_tty.c uses wtp->wt_specialized in a much
different manner than the signal handlers in qnet or drivertest. So it appears that if both qnet and ppp are loaded,
there are threads that will not be quiesced by quiese_all(). What am I missing here?
Yes, that looks like a bug. I'll make a PR.
Thanks,
-seanb
|
|
|