You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle listen errors and lock-meta rejections without leaking the lock
Address Copilot review on PR #24:
- Register `server.once('error', ...)` before `listen()` so EADDRINUSE
/ EACCES releases the proper-lockfile lock and exits, instead of
letting Node emit an unhandled error event while still holding it.
- Make the `listen()` callback synchronous and chain `writeLockMeta`
with `.then()/.catch()` so a rejection (permission/disk error)
cannot escape as an unhandled promise rejection — on failure we
release the lock and exit with status 1.
0 commit comments