_beginthread/_endthread/qnx_spawn

I am using _beginthread to create a new thread. When _endthread is called, a
zombie process still exists. Is there a safe way to get around this?

Doug

Doug Rixmann <rixmannd@rdsdata.com> wrote:

I am using _beginthread to create a new thread. When _endthread is called, a
zombie process still exists. Is there a safe way to get around this?

Not use threads under QNX4.

If the parent does a signal(SIGCHLD, SIG_IGN) before creating any children,
including any child-threads, that just might do it.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

“Doug Rixmann” <rixmannd@rdsdata.com> wrote in message
news:aopr7i$6u4$1@inn.qnx.com

I am using _beginthread to create a new thread. When _endthread is called,
a
zombie process still exists. Is there a safe way to get around this?

The parent should setup a signal handler and do a wait() on the thread.
I don’t remember if wait() is signal safe :wink:

Threads are doable, but pain under QNX4 since they are not real threads.

Doug

Mario Charest postmaster@127.0.0.1 wrote:
: I don’t remember if wait() is signal safe :wink:

According to the docs here, it is.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems