[MINOR] stop_single_service schedules timeout for already-dead processes #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When
send_signal_to_groupfails with ESRCH (process already dead),stop_single_servicestill schedules a stop timeout. The timeout will fire and attempt to SIGKILL a dead process -- harmless but generates noise in logs.Impact
Noisy logs. Wasted timer resources.
Files
crates/my_init_server/src/supervisor/api.rs--stop_single_serviceSuggested Fix
Check if the signal send failed with ESRCH and skip the timeout in that case.