LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-29-2009, 08:48 AM   #1
matt007
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Rep: Reputation: 0
stopping both parent child processes in perl


Using perl, and signals -

If a perl daemon A called a process B and also A cathces a signal --

--use sigtrap 'handler' => \&GotSignal, 'error-signals', 'normal-signals';


Then if daemon A catches a signal and is killed, does B get killed automatically, how do i ensure that B is killed as well when A is killed using the signal...

thanks.
 
Old 09-30-2009, 01:46 AM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
kill B first
 
  


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
making the parent direct child processes to pause/sleep and resume execution expeliarmus Programming 1 08-14-2007 05:11 AM
how can you pause child/parent processes in C and execute another function. expeliarmus Programming 5 08-06-2007 01:04 AM
How to rebuild the parent-child relationship of processes? whererush Programming 2 05-19-2006 02:17 PM
Parent child processes signal sharing iftiuk Programming 8 06-24-2004 01:32 PM
parent and child processes skora Programming 5 11-02-2003 10:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:52 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