spawn

I am trying to use spawn to open a child process and want to make sure that
it doesn’t create zombies? Can sombody suggest how to load fd_map array to
achieve this?

Thanks
Shashank

Shashank <sbalijepalli@precitech.com> wrote:

I am trying to use spawn to open a child process and want to make sure that
it doesn’t create zombies? Can sombody suggest how to load fd_map array to
achieve this?

Either:

signal(SIGCHLD, SIG_IGN) before creating any children
OR
In the spawn flags, set SPAWN_NOZOMBIE.

It is NOT done through the fd_map and has nothing to do with the
mapping of fds.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com