Hi All, I've a process (parent process) running which inturn invokes many other processes (child process) one by one sequentially. Now, i've a need to handle signals in these processes. From the user point of view, he can only send a signal to the parent process. Now my question is when the parent process receive a signal (For example, SIGTERM), how to propagate the same to every other child process so that they can do necessary clean ups and gracefully exit ?
One way is to use IPC such as shared memory to store PID of the child process and the parent process can access the shared memory to get the PIDs and kill the child processes accordingly. But this adds a lot complication and i am not sure whether it's a good design. May be, it is !!!! Is there any alternative way to propagate the signal to the child processes ? Any feedbacks/ideas are welcome. Thanks & Regards, Guru Prasad P.S : These processes are Perl scripts and i using 'system()' function to invoke other processes from the parent process. _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
