Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 09-23-2004, 10:07 AM   #1
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Rep: Reputation: 30
programming ideas: track and terminate child processes

I created a program basically what it does is fork a bunch of child processes, then I sent a signal to the parents which pass it on to all of its children, one of the children will start its own group upon the receptioin of the signal and fork a bunch of its own children. I need a good algorithm that will terminate all the process at the end of the program, any good ideas?
Old 09-23-2004, 11:15 AM   #2
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
What exactly are you doing here? Is this a virus or spyware thing or something?
Old 09-23-2004, 11:27 AM   #3
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Original Poster
Rep: Reputation: 30
no, it is just a practise for using fork(), signal(), kill(), --> a exercise from the book i am using


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
forking 7 child processes ianomc Programming 5 11-07-2004 01:33 PM
Limiting child processes in Apache? Phaethar Linux - Software 2 11-02-2004 06:24 PM
how to terminate processes feetyouwell Programming 8 09-18-2004 03:27 PM
Rotatelogs - Do I have too many child processes? fireman949 Linux - Software 2 06-08-2004 03:04 PM
parent and child processes skora Programming 5 11-02-2003 11:41 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:40 AM.

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