Daniel Sauer
20957efa46
fix(process): graceful process tree termination with SIGTERM before SIGKILL
...
Process trees (pty sessions, tool exec) were being SIGKILL'd immediately
without any grace period for cleanup. This prevented child processes from:
- Flushing buffers and closing files cleanly
- Closing network connections
- Terminating their own child processes
- Removing temporary files
Changes:
- Send SIGTERM to process group first (Unix)
- Wait configurable grace period (default 3s)
- Then SIGKILL if process still alive
- Windows: taskkill without /F first, then with /F after grace period
- Use unref() on timeout to not block event loop exit
Fixes #18619
Co-authored-by: James <james@openclaw.ai>
2026-02-16 23:49:44 +01:00
..
2026-02-16 02:45:00 +00:00
2026-02-16 22:39:42 +00:00
2026-02-16 22:47:34 +00:00
2026-02-16 14:59:31 +00:00
2026-02-16 02:45:00 +00:00
2026-02-16 13:25:58 -06:00
2026-02-16 22:10:21 +01:00
2026-02-16 22:47:26 +00:00
2026-01-30 03:16:21 +01:00
2026-02-16 13:29:24 -06:00
2026-02-16 22:30:39 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 22:43:37 +00:00
2026-02-04 10:37:14 -05:00
2026-02-16 10:35:26 -08:00
2026-02-16 23:49:41 +01:00
2026-02-16 14:59:31 +00:00
2026-02-16 15:16:35 -05:00
2026-02-16 14:59:31 +00:00
2026-02-13 18:38:40 +01:00
2026-02-16 15:16:35 -05:00
2026-02-16 02:45:00 +00:00
2026-02-16 06:16:33 +00:00
2026-02-16 02:45:00 +00:00
2026-02-16 14:59:31 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 02:45:00 +00:00
2026-02-16 16:14:54 +00:00
2026-02-16 13:25:58 -06:00
2026-02-16 14:59:30 +00:00
2026-02-16 23:49:44 +01:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-16 16:14:54 +00:00
2026-02-16 02:45:00 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:31 +00:00
2026-02-16 22:30:39 +00:00
2026-02-16 17:02:59 -05:00
2026-02-16 02:45:00 +00:00
2026-02-16 00:08:00 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:31 +00:00
2026-02-16 17:06:40 +00:00
2026-02-02 01:52:33 +01:00
2026-02-16 01:52:30 +00:00
2026-02-16 17:22:26 +00:00
2026-02-15 01:15:43 +00:00
2026-02-16 14:59:30 +00:00
2026-01-13 08:40:39 +00:00
2026-02-15 00:56:20 +00:00
2026-02-14 15:39:46 +00:00
2026-02-03 20:18:16 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-16 02:45:00 +00:00
2026-01-31 16:19:20 +09:00
2026-02-13 16:20:37 +00:00
2026-02-14 19:03:46 +01:00
2026-02-14 19:03:46 +01:00
2026-02-16 17:06:40 +00:00
2026-02-16 02:45:00 +00:00
2026-02-09 18:56:58 -08:00
2026-02-06 00:09:48 -05:00
2026-02-06 00:09:48 -05:00