Skip to content
Snippets Groups Projects
Commit af8f42b5 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov Committed by Yaroslav Dynnikov
Browse files

fix: deadlock in supervisor signal handler

Only a few functions are allowed in signal handlers (see `man 7
signal-safety`). Both `println!()` and `std::process::exit()` are not
acceptable. In our case `std::process::exit()` resulted in a dead lock
when called concurrently.

This patch fixes it, and also enhances some other aspects of the supervisor.

See also: https://stackoverflow.com/questions/44865737/println-panics-when-called-concurrently
parent 4be5d8c3
No related branches found
No related tags found
1 merge request!309fix: deadlock in supervisor signal handler
Pipeline #12949 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment