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: 10 years 11 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: 4 years 5 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: 6 months 3 weeks ago
Joined: 2011-02-03 13:58
Re: How do I check for multiple instances of a program...

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.

AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2

hypex
hypex's picture
Offline
Last seen: 3 months 3 weeks 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