in reply to Re^3: Killing the child process is not working
in thread Killing the child process is not working

The system 1, $cmd does not work.

Can you please let me know how to get the child process id in the Child code? If I know that I will try to send the SIG{INT} interrupt, because manual CTRL-C gets me into the interrupt handler for $SIG{INT} and program execution stops

Replies are listed 'Best First'.
Re^5: Killing the child process is not working
by BrowserUk (Patriarch) on Mar 20, 2013 at 10:16 UTC
    The system 1, $cmd does not work.

    Define?

    Can you please let me know how to get the child process id in the Child code?

    I already did. Read fork


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.