[Gambas-user] Single instance application, anyone else done it?

jose.rodriguez at cenpalab.cu jose.rodriguez at cenpalab.cu
Thu Jul 8 17:11:02 CEST 2021


July 8, 2021 10:59 AM, "Tobias Boege via User" <user at lists.gambas-basic.org> wrote:

> Or you
> could make your program set up a UNIX socket in a well-known location.
> Other instances of your program will try to connect to the socket and
> if they get a response, another instance is running. If not, they
> create that socket and answer on it to prove that they're running.
> 

I did this on a couple of my java developments, but using a TCP socket for cross-platform use.

Regards,
Joe1962



More information about the User mailing list