Re: [PBML] fork and exec/system
- Please don't top-post.
A. It's backwards
Q. What's wrong with top posting?
>>>>> "Sreeram" == Sreeram B S <sreeramabsc@...> writes:Sreeram> If I want to kill all the processes which my program has
Sreeram> started, then I may need the PIDs and use the "kill" on
Sreeram> these PIDs as part of cleanup. Also, in few occasions,
Sreeram> we may need to kill some processes to proceed further in
Sreeram> the program. I think, in these situations, the PID of the
Sreeram> started process plays a vital role.
Well, what if the process you fork also forks others? How will you
get to all of them?
Best to create a process group, because then you can kill a group all
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!