[MINOR] stop_single_service schedules timeout for already-dead processes #34

Open
opened 2026-05-11 10:52:02 +00:00 by thabeta · 1 comment
Owner

Problem

When send_signal_to_group fails with ESRCH (process already dead), stop_single_service still 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_service

Suggested Fix

Check if the signal send failed with ESRCH and skip the timeout in that case.

## Problem When `send_signal_to_group` fails with ESRCH (process already dead), `stop_single_service` still 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_service` ## Suggested Fix Check if the signal send failed with ESRCH and skip the timeout in that case.
Member

Classification: valid-bug — stop_single_service schedules a stop timeout even when ESRCH indicates process already dead, wasting timer resources and generating noisy logs.

> Classification: valid-bug — stop_single_service schedules a stop timeout even when ESRCH indicates process already dead, wasting timer resources and generating noisy logs.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/my_init#34
No description provided.