Messages in this thread | | | Date | Fri, 16 Mar 2001 11:03:14 -0700 | From | Craig Ruff <> | Subject | Re: fork and pthreads |
| |
On Fri, Mar 16, 2001 at 06:52:26PM +0100, Richard Guenther wrote: > Well, using pthreads and forking in them seems to trigger libc > bugs (read: SIGSEGvs) here under certain conditions (happens, > after I introduced signal handlers and using pthread_sigmask, > I think), so hangs should be definitely possible, too...
You must pretty much avoid using signal handlers with pthreads. In stead, you need to carefully setup things such that most signals are blocked in most threads and a single thread (or selected set of threads) does a sigwait for signals of interest. Most good pthreads books talk about this issue, as does the DCE documentation. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |