View topic - where is qnx_spawn's child process's return value?

Page 1 of 1

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

PostPosted: Thu Sep 18, 2014 4:03 am
by sieudot
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 :)

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

PostPosted: Thu Sep 18, 2014 1:54 pm
by mario
Have you read qnx_spawn documentation ?