Signal safety?
akhilles opened this issue · 1 comments
akhilles commented
From my initial inspection, it looks like Sender::try_send
is safe to use inside signal handlers. If this is case, it might be worth documenting since it's a compelling alternative to signal_hook::iterator::Signals
.
Deleted user commented
Not quite - Sender::try_send()
might allocate, and allocation might grab an internal lock inside the allocator, do syscalls etc. So it's definitely not signal safe :)