How to set child process die when parent process die?

Hi QNX lovers,

Can you all show me how to set child process will terminate due to terminating of parent process? I’m using spawn() to create new process but I’ve no idea how to set it.


I also don’t know how to use spawn() and the difference with fork()? … spawn.html

spawn is QNX only while fork() is more portable.