PDA

View Full Version : core dump by child process



anoopks
08-09-2003, 07:05 AM
Hi,
As most of you would know, in unix, if the child process "core dumps", and the parent process is wait() ' ing for it with an integer argument, perhaps the fastest way to know in the parent process is &'ing the integer with 0x80.(considering there is only one process fork()'ed.)

I was trying the same in linux but it did not work. Any pointers to why?
I googled a lot but frankly I am not even sure if my search string(s) were intelligent ones.

thanks,
Anoop.

anoopks
08-09-2003, 07:35 AM
>So instead of
>if ( status & 0x80 )

>Perhaps
>if ( WIFSIGNALED(status) )


>will work more usefully for you
--------------------------------------------------------

True, infact
if (status & 0x80)

is not working at all.

Is there any philosophy why it was not implemented in Linux at all?

Anoop.