Search Results

Search: Posts Made By: asvija
4,318
Posted By asvija
strange pid and ppid problem
Hi all,

Please look into the following code :

int main()
{
char command[ 1024 ];
int pid, ppid;

ppid = getpid(); /* Get the parent pid */

pid = fork(); /* Fork */

if ( pid ==0 )
{...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy