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 3 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: 3 years 9 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: 5 months 21 hours 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.

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

hypex
hypex's picture
Offline
Last seen: 1 month 2 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