Dev Scribe
c975a23354
fix(cli): wait for the service manager before exiting after stop
...
On Windows, `ctrld stop` in Intercept mode sometimes ended with SCM event
7031 and an automatic restart, which put the NRPT catch-all back (#652 ).
Service Stop closes stopCh and returns; kardianos/service then reports
SERVICE_STOPPED from the s.Run goroutine. run() returned as soon as
finishRun completed, and main called os.Exit(0) right away. If that beat
s.Run, the process was gone while the service was still StopPending, and
SCM treated it as a crash.
The ordering race is older, which fits #492 . 9ad42622 (#627 ) moved the
control-server Shutdown from finishRun into Stop, so finishRun no longer
spends that time before the process exits, and the exit wins far more
often. Lab, service-stop-start Intercept: 1.5.8 0/21, 633689c 13/23,
633689c without the early call 0/15.
Keep the early control-server stop that #627 needs, and make run() wait,
bounded at 5 s, for s.Run to return before the process exits.
2026-10-27 20:17:17 +07:00
..
2024-02-07 14:40:18 +07:00
2026-10-20 17:17:54 +07:00
2025-01-24 14:54:20 +07:00
2025-12-18 17:10:39 +07:00
2025-12-18 17:10:39 +07:00
2026-10-20 17:17:54 +07:00
2026-10-20 17:17:54 +07:00
2026-10-20 17:17:54 +07:00
2026-09-28 16:49:42 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2025-02-18 20:25:13 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-07-28 16:11:37 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:44:51 +07:00
2026-10-20 17:23:47 +07:00
2026-10-27 20:17:17 +07:00
2026-09-28 16:47:40 +07:00
2026-09-28 16:44:51 +07:00
2026-09-28 16:44:51 +07:00
2026-09-28 16:44:51 +07:00
2026-10-20 17:23:47 +07:00
2023-08-15 18:22:38 +07:00
2026-09-28 16:47:40 +07:00
2026-09-28 16:47:40 +07:00
2026-09-28 16:47:40 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-10-20 17:23:47 +07:00
2026-08-21 14:45:56 +07:00
2026-09-28 16:45:45 +07:00
2026-08-21 14:46:44 +07:00
2026-09-28 16:49:05 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-06 14:52:42 +07:00
2026-09-28 16:45:03 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:50:50 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:52:27 +07:00
2026-09-28 16:52:27 +07:00
2026-09-01 11:08:13 +07:00
2026-09-28 16:55:15 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:55:27 +07:00
2026-09-28 16:55:27 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:55:27 +07:00
2026-09-28 16:55:15 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:55:27 +07:00
2026-09-28 16:55:42 +07:00
2026-09-28 16:56:04 +07:00
2026-09-01 11:08:13 +07:00
2026-09-28 16:55:27 +07:00
2026-09-01 11:08:13 +07:00
2023-08-15 18:22:38 +07:00
2026-09-28 16:49:42 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:44:51 +07:00
2026-09-28 16:44:51 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-08-21 14:46:44 +07:00
2026-09-28 16:49:05 +07:00
2026-10-06 14:53:19 +07:00
2026-10-06 14:53:19 +07:00
2026-10-06 14:53:19 +07:00
2026-10-06 14:53:19 +07:00
2026-09-28 16:52:10 +07:00
2026-08-21 14:49:58 +07:00
2026-08-21 14:49:58 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:56:04 +07:00
2026-08-22 01:34:48 +07:00
2026-09-28 16:49:42 +07:00
2026-10-06 14:52:42 +07:00
2026-09-28 16:47:40 +07:00
2026-09-28 16:47:40 +07:00
2026-10-06 14:52:42 +07:00
2026-10-06 14:52:42 +07:00
2026-10-20 17:23:47 +07:00
2026-10-06 14:52:42 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:47:40 +07:00
2026-09-28 16:47:40 +07:00
2026-10-06 14:52:42 +07:00
2026-09-28 16:47:40 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:47:40 +07:00
2026-03-25 13:58:44 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:47:40 +07:00
2026-10-20 17:23:47 +07:00
2023-12-13 14:53:29 +07:00
2026-09-28 16:52:51 +07:00
2026-08-21 15:12:32 +07:00
2026-09-28 16:47:40 +07:00
2026-10-20 17:23:47 +07:00
2026-08-21 14:48:20 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:55:42 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-10-06 14:52:42 +07:00
2026-10-20 17:23:47 +07:00
2023-09-22 18:42:21 +07:00
2023-08-15 18:22:38 +07:00
2026-09-28 16:49:42 +07:00
2026-09-28 16:55:42 +07:00
2026-09-28 16:55:42 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-10-06 14:52:42 +07:00
2026-10-06 14:52:42 +07:00
2026-09-28 16:45:33 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:45:33 +07:00
2026-09-28 16:45:33 +07:00
2026-09-28 16:45:33 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2023-11-16 20:55:39 +07:00
2025-02-18 20:25:13 +07:00
2026-08-21 14:46:44 +07:00
2026-08-21 14:46:44 +07:00
2026-08-21 14:46:44 +07:00
2026-09-28 16:45:45 +07:00
2026-07-14 01:12:37 +07:00
2026-07-14 01:12:37 +07:00
2025-05-15 17:00:59 +07:00
2025-05-15 17:00:59 +07:00
2023-08-15 18:22:38 +07:00
2026-10-20 17:23:47 +07:00
2023-08-15 18:22:38 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2024-12-19 21:34:37 +07:00
2026-03-03 14:29:09 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:55:15 +07:00
2026-09-28 16:45:33 +07:00
2026-09-28 16:45:33 +07:00
2026-08-21 14:45:56 +07:00
2026-08-21 14:45:56 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2023-08-15 18:22:38 +07:00
2023-08-15 18:22:38 +07:00
2026-09-28 16:44:51 +07:00
2024-05-09 18:39:30 +07:00
2026-08-05 00:39:42 +07:00
2025-02-26 00:44:13 +07:00
2026-07-14 01:12:34 +07:00
2025-02-26 00:44:13 +07:00
2026-10-20 17:23:47 +07:00
2024-08-07 15:51:11 +07:00
2026-09-28 16:44:51 +07:00
2026-09-28 16:44:51 +07:00
2026-10-20 17:17:54 +07:00
2026-10-20 17:17:54 +07:00
2026-09-28 16:44:51 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:51:55 +07:00
2026-10-06 14:53:19 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-10-20 17:23:47 +07:00
2026-10-06 14:53:19 +07:00
2026-10-06 14:53:33 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:42 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:49:42 +07:00
2026-09-28 16:49:42 +07:00
2024-08-07 15:54:20 +07:00
2026-10-20 17:23:47 +07:00
2024-02-22 18:15:36 +07:00
2025-02-10 18:55:36 +07:00
2026-09-28 16:49:42 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2025-05-15 17:00:59 +07:00
2025-05-15 17:00:59 +07:00
2024-08-07 15:51:11 +07:00
2024-08-07 15:51:11 +07:00
2024-08-16 13:50:11 +07:00
2025-03-26 23:18:36 +07:00
2025-03-26 23:18:36 +07:00
2025-03-26 23:18:36 +07:00
2023-08-15 18:22:38 +07:00
2026-09-01 11:03:13 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-08-21 15:12:32 +07:00
2026-10-20 17:23:47 +07:00
2026-08-21 14:50:27 +07:00
2026-08-21 14:50:27 +07:00
2026-08-21 14:50:27 +07:00
2026-08-21 14:50:27 +07:00
2026-09-28 16:47:40 +07:00
2026-08-21 14:50:27 +07:00
2026-08-21 14:50:27 +07:00
2026-08-21 14:52:02 +07:00
2024-12-19 21:34:21 +07:00
2026-03-25 13:58:24 +07:00
2026-09-01 11:03:13 +07:00
2026-09-28 16:49:42 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:40:49 +07:00
2026-09-28 16:40:49 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-10-20 17:23:47 +07:00
2026-09-28 16:49:05 +07:00
2026-09-28 16:49:05 +07:00
2026-07-28 16:12:36 +07:00
2026-08-21 14:50:11 +07:00
2026-08-21 14:50:11 +07:00
2026-10-06 14:53:19 +07:00
2026-09-28 16:51:55 +07:00
2026-09-28 16:53:02 +07:00
2026-09-28 16:49:42 +07:00
2026-09-28 16:56:04 +07:00
2026-09-28 16:49:05 +07:00
2026-10-20 17:23:47 +07:00
2026-10-27 20:17:17 +07:00
2024-02-07 14:40:18 +07:00