Skip to content

Fix-panic-on-sigterm#9

Merged
sni merged 4 commits intomasterfrom
fix-panic-on-sigterm
Feb 10, 2026
Merged

Fix-panic-on-sigterm#9
sni merged 4 commits intomasterfrom
fix-panic-on-sigterm

Conversation

@inqrphl
Copy link

@inqrphl inqrphl commented Feb 9, 2026

Intended to fix issues where using an interrupt like sigterm causes panic in the program. This is due to blindly calling Stop() on objects that were nil.

There was a nil check on the stoppables array, but that was not working. The solution is to not add objects to the stoppables array if they are nil.

Ahmet Oeztuerk added 4 commits February 9, 2026 13:45
- properly compare if the interface itself and its value inside is not nill before calling Stop()
- add nil checks on the Stop() functions to see if the receiver pointer value is nil
- remove nil checks for receivers
- remove nil checks while stopping and counting stoppables
@sni sni merged commit 0f41db5 into master Feb 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants