How do I check for multiple instances of a program running from within a program?

4 posts / 0 new
Last post
AmigaOneFan
AmigaOneFan's picture
Offline
Last seen: 5 years 7 months ago
Joined: 2011-11-14 16:18
How do I check for multiple instances of a program running from within a program?
There must be a very simple way to do this. How can I have a program check to see if an instance of it is already running in OS4, using C? I want to prevent the possibility of multiple instances running at the same time. Thanks!
tboeckel
tboeckel's picture
Offline
Last seen: 1 year 7 months ago
Joined: 2011-09-13 12:32
Set up a named public message
Set up a named public message port or semaphore or turn your application into a basic Commodity which allows only one instance.
trixie
trixie's picture
Offline
Last seen: 4 hours 6 min ago
Joined: 2011-02-03 13:58
turn your application into a
turn your application into a basic Commodity which allows only one instance
Better than that, register your app with the Application Library and set it up as a unique application.
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition Author of WordNet for OS4
hypex
hypex's picture
Offline
Last seen: 2 months 1 week ago
Joined: 2011-09-09 16:20
Can the utility.library name
Can the utility.library name space functions also help here?
Log in or register to post comments