core dump by child process

This is a discussion on core dump by child process within the Linux Programming forums, part of the Platform Specific Boards category; Hi, As most of you would know, in unix, if the child process "core dumps", and the parent process is ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    57

    core dump by child process

    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.

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    57
    >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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 10:05 AM
  2. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 01:14 PM
  3. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21