3 ms·
Is there any other way without using lock files? Using socket or something?
by the2ndfloorguy 5y ago
Is there any other way without using lock files? Using socket or something?
- tyingq 5y agoI suppose you could try listening on a socket at a specific port. The next process would get EADDRINUSE if you were still running. There's also sysv or posix semaphores.