LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2011, 02:22 PM   #1
vflex
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
how parent process again restarts killed child processes??


Hi,

I have a parent process which spawns 4 child processes. Parent is handling SIGCHLD signal for child termination. Now i am killing one child process like - "kill -9 PID1". After that parent process receives SIGCHLD signal and kills the remaining 3 child processes running.

But these 3 child processes, terminated by parent process are sending SIGCHILD signal to parent process which i don't want. So how to avoid/discard the SIGCHILD signal in parent process for these 3 child processes killed??

And without exiting the parent process i have to spawn these 4 child processes again. so how to do this?

Last edited by vflex; 11-08-2011 at 02:30 PM.
 
Old 11-08-2011, 04:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Child process exit causes OS to send SIGCHILD, but it can be ignored. Tell us which prog lang you are using and show relevant code section.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Child processes of a Parent Process occupying socket memory gaurav.rai1984@gmail.com Linux - Newbie 2 08-03-2010 04:27 AM
[SOLVED] terminate child process when parent is killed minimol Programming 1 10-29-2009 05:11 AM
stopping both parent child processes in perl matt007 Programming 1 09-30-2009 02:46 AM
When I kill parent process, child isn't killed BengeBoy Linux - Software 0 08-19-2004 05:38 PM
parent and child processes skora Programming 5 11-02-2003 11:41 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration