I wanted to limit my app to running as a single instance, in both Windows and Linux.
Several solutions for this single instance problem have been posted, but usually do not include running in Linux.
Erel made a few suggestions in one of his posts. One of these was to use an external file as a marker to indicate that the app is already running.
I took on the task of doing this, and here is my solution.
The "single_instance_test" example attached has many comments which describe how the app works.
Several solutions for this single instance problem have been posted, but usually do not include running in Linux.
Erel made a few suggestions in one of his posts. One of these was to use an external file as a marker to indicate that the app is already running.
I took on the task of doing this, and here is my solution.
The "single_instance_test" example attached has many comments which describe how the app works.