in reply to Re: how can we tell when a background process is finished?
in thread how can we tell when a background process is finished?

Thanks...do you know where I can find an example of this? I understand how to fork and then do system("program") in the child, but I'm not sure how to handle the "signal handler" for SIGCHLD. I think I will have to use waitpid()?

Replies are listed 'Best First'.
Re^3: how can we tell when a background process is finished?
by DaWolf (Curate) on Jun 20, 2004 at 14:29 UTC
    Take a look at perlmonkey's MP3 server with IO::Socket tutorial.
    It explains in the fifth paragraph exactly what you're asking about processes.

    Best regards,

    my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");