()
| 391 | // delay is not enough: slow-shutdown services (wrangler with containers |
| 392 | // takes 10s+ on SIGINT) are still in the foreground when the relaunch |
| 393 | // keystrokes arrive, which feeds the command into the dying process's |
| 394 | // stdin instead of the shell and leaves the service stopped. |
| 395 | const POLL_MS = 500; |
| 396 | const ESCALATE_AT_MS = 15_000; // second SIGINT for shutdowns stuck on children |
| 397 | const GIVE_UP_AT_MS = 60_000; |
| 398 | // Two consecutive idle polls, not one: a service on its way out can briefly |
| 399 | // have a shell as its last living descendant, and typing then would feed the |
no test coverage detected