• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to kill a process ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to kill a process ??? (From: Graham Wihlidal <email@hidden>)

  • Prev by Date: Re: From NEXT, to Apple, to ... the world
  • Next by Date: Re: regarding nib files.
  • Previous by thread: Re: How to kill a process ???
  • Next by thread: Lines with arrows
  • Index(es):
    • Date
    • Thread