I am working on NT Server.I execute a program inside another with the spawnl function.
father_pid = getpid ();
if( (pid = spawnl (P_NOWAIT, argv, argv, NULL ) ) == -1 )
printf( "Spawn failed" );
The pid must to be the pid of de called program and the father_pid the pid of the calling program. I start the Task Manager and can see that the father_pid is correct, but the pid of the called program is different, so I only can know the pid of the called program if I see the Task Manager.
Has the spawnl function failed?. Thanks.