Re: How to kill a process ???
Re: How to kill a process ???
- Subject: Re: How to kill a process ???
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 31 Aug 2001 21:59:15 +0100
Because that's disgusting, and also Darwin doesn't have killall.
Use kill() instead.
-- Finlay
On Friday, August 31, 2001, at 09:50 pm, Graham Wihlidal wrote:
Why don't you just use the system() function?
For example, say your executable (which is running) is called
MyProgram and
you want to kill everyone running occurence of it, you use:
system("killall MyProgram");
or a nicer, yet more difficult way (you must know the process id) is to
do
the following:
system("kill ###"); where ### is the process id