Skip navigation.
Home
The QNX Community Portal

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

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

For the old QNX2 and QNX4 RTOS

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

Postby sieudot » Thu Sep 18, 2014 4:03 am

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 :)
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam

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

Postby mario » Thu Sep 18, 2014 1:54 pm

Have you read qnx_spawn documentation ?
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests

cron