Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] fork and exec/system

Expand Messages
  • merlyn@stonehenge.com
    Please don t top-post. A. It s backwards Q. What s wrong with top posting? ... Sreeram If I want to kill all the processes which my program has Sreeram
    Message 1 of 4 , Jun 29, 2005
    • 0 Attachment
      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
      at once.

      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.