LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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 01:30 PM.
 
Old 11-08-2011, 03:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 03:27 AM
[SOLVED] terminate child process when parent is killed minimol Programming 1 10-29-2009 04:11 AM
stopping both parent child processes in perl matt007 Programming 1 09-30-2009 01:46 AM
When I kill parent process, child isn't killed BengeBoy Linux - Software 0 08-19-2004 04:38 PM
parent and child processes skora Programming 5 11-02-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 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
Open Source Consulting | Domain Registration