• 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: Allow only one program to be running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allow only one program to be running


  • Subject: Re: Allow only one program to be running
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 23 Nov 2003 19:22:43 -0800

On Nov 23, 2003, at 5:50 PM, Peter wrote:

Is it possible to detect another instance of the program running by another user ?

Yes. You can use the sysctl() call to get a list of processes that are running, by using CTL_KERN, KERN_PROC, and KERN_PROC_ALL for the mib array. See the man page for sysctl(3) for more details.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything happen to him [Nemo]; then, nothing would ever happen to him." - Dory, from the movie "Finding Nemo"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Allow only one program to be running (From: Peter <email@hidden>)

  • Prev by Date: Re: erase RAM completely?
  • Next by Date: Re: Save a NSAppleScript to a file
  • Previous by thread: Allow only one program to be running
  • Next by thread: Re: Allow only one program to be running
  • Index(es):
    • Date
    • Thread