Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Use of signal() in nw_pthreads: Page 1 of 6 (6 Items)
   
Use of signal() in nw_pthreads  
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?

Murf