Trapping SIGCHLD

From: Chuck (chuckh_nospam_at_softhome.net)
Date: 06/23/04


Date: 23 Jun 2004 16:23:31 GMT

I want to lauunch several background processes within a shell script and
track when they terminate. Is there any way I can trap SIGCHLD and
determine which specific process terminated?

-- 
Chuck
Remove "_nospam" to reply by email


Relevant Pages

  • Re: hard disk activity light flashes at regular intervals
    ... Certainly background processes are running. ... Task Manager allows you to terminate almost all processes including the invisible ones running in the background. ...
    (microsoft.public.windowsxp.general)
  • program does not always terminate
    ... How can I force all threads to terminate from within the same ... Linux 2.6) uses several threads. ... terminated and the next command in the shell script is executed. ... execute "killall -KILL progname" in order to kill any threads which ...
    (comp.programming.threads)
  • Re: "kill" group of commands from within script
    ... > I have a problem with a small shell script. ... and then tries to terminate them ... > When I run this command using KornShell, ... A Problem-Solution Approach, 2005, Apress ...
    (comp.unix.shell)
  • Re: get PID for a process
    ... It does work from a shell script, but only for background processes. ... do a "ps" and pipe it to grep or awk for your command name - post a version of ...
    (comp.unix.shell)