where is qnx_spawn's child process's return value?

Hi everyone,

In my code on QNX4.25, I use function qnx_spawn() to run a child process (example: processA).
When this child process had finished its job, it returned an integer value. So, where does this value store at?

//in child process code
int main()
// … do something
return 2014;

// in father code…
pid = qnx_spawn( processA );
//pid_t qnx_spawn( int exec, struct _proc_spawn *msgbuf, nid_t node, int priority, int scheduler, int flags, char *cmd, char *argv[], char envp[], char iov[], int ctfd );

Please help me :slight_smile:

Have you read qnx_spawn documentation ?