Commit 63e8e65
committed
fix: allow detached respawn on Windows for /restart
restartGatewayProcessWithFreshPid() previously returned mode:disabled on
Windows when no Scheduled Task markers were detected, causing /restart to
fall back to in-process restart (HTTP server close+reopen) without actually
restarting the Node.js process. The PID and uptime remained unchanged.
The update restart path (respawnGatewayProcessForUpdate()) already attempts
detached spawn on Windows. Apply the same behavior to the normal restart
path so /restart works on unmanaged Windows installs.1 parent 583829a commit 63e8e65
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
0 commit comments