[comp.windows.x] X, SIGCLD, and XIO errors... Help!

jon@infonode.ingr.com (Jon Stone) (03/29/91)

We have an X program that forks off other X programs and waits for them
to complete.  While it is waiting, it is waiting for expose events, and
has a signal handler setup for the SIGCLD (child terminated) to know
when the child process terminates. 

If the top process gets an Expose event and is in the middle of its
repaint operation, and then gets a SIGCLD signal, the main process dies
with an XIO error 0, as soon as my signal handler completes. 

How am I supposed to interact signals and X? Can this be done the way I
am doing it, or is there another way? We could setup an XIO error
handler, but again this is not a fatal error for me, it is an expected
condtion. 

Thanks in advance,

Jon Stone

-- 
_______________________________________________________________________________
Jon D. Stone				jon@ingr.com -or- ..!uunet!ingr!jon
Intergraph Corporation, Huntsville, AL	(205)730-8594
_______________________________________________________________________________