execv() = spawnxx() ?

Hi:

I was using a ‘control’ app that did a fork()-and-execv() to start up
another app. What is the equivalent version of spawnxx() that will
accomplish what the above was doing?

From the QNX documentation, I figured that spawn() with null values for
env, fd_count and fd_map would inherit the entire parent environment and
hte Fds. However, that dosent seem to be the case…

Help would be greatly appreciated.

Thanks,
-Rommel

Since you are using fork() + execv(), I would guess spawnv(P_NOWAIT, …)
is the closest.

-xtang

Rommel Dongre <rdongre@pillardata.com> wrote in message
news:b0i76h$cc6$1@nntp.qnx.com

Hi:

I was using a ‘control’ app that did a fork()-and-execv() to start up
another app. What is the equivalent version of spawnxx() that will
accomplish what the above was doing?

From the QNX documentation, I figured that spawn() with null values for
env, fd_count and fd_map would inherit the entire parent environment and
hte Fds. However, that dosent seem to be the case…

Help would be greatly appreciated.

Thanks,
-Rommel