Commit 53f3dfa
committed
Fix force-stop daemon to handle lock contention gracefully
When cleanupWorkspaceDaemonFiles fails to acquire the daemon registry
lock, forceStopDaemon now catches the error and falls back to directly
removing the socket file. This preserves the force-stop contract that
cleanup must succeed even under contention, which is critical since
force-stop is the fallback path when graceful shutdown fails.1 parent 23c1723 commit 53f3dfa
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
0 commit comments