Hai all…
I need to know how to permitted operation when we call function
setsid()?
The codes are below:
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int main( void )
{
if( setsid() == -1 )
perror( "parent: setsid" );
else
printf( "parent: I am a session leader\n" );
return EXIT_SUCCESS;
}
Can you all help me?