Re: Allow only one program to be running
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.