V
Vittal
Hello,
Here I have a simple C program. But I am not understanding how I can
debug this?
#include <stdio.h>
main()
{
int pid=0;
pid=fork();
if(pid)
printf("In parent process\n");
else
printf("In child process\n");
}
While running the executable in dbx mode I see the first printf
statement and after that sample directly comes out. But if I run the
executable without dbx I see both the printf statements.
Can somebody help me in this.
Thanks
-Vallabha
Here I have a simple C program. But I am not understanding how I can
debug this?
#include <stdio.h>
main()
{
int pid=0;
pid=fork();
if(pid)
printf("In parent process\n");
else
printf("In child process\n");
}
While running the executable in dbx mode I see the first printf
statement and after that sample directly comes out. But if I run the
executable without dbx I see both the printf statements.
Can somebody help me in this.
Thanks
-Vallabha