[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

fork-exec causes core-dump

 I used fork-exec to create a child process, 
it ran properly but caused a core dump.
Since I wished to run it in the background I used,
   waitpid(pid,&status,WNOHANG|WUNTRACED);   inside a loop
 The process itself when executed from the shell runs without core-dump;
 gdb tells the child is causing core dump.

Anybody to get me out of this mess?
Delip Rao