(no title)
djmdjm
|
1 year ago
Theo de Raadt made an, I think, cogent observation about this bug and how to prevent similar ones: no signal handler should call any function that isn't a signal-safe syscall. The rationale is that, over time, it's too way easy for any transitive call (where it's not always clear that it can be reached in signal context) to pick up some call that isn't async signal safe.
ralferoo|1 year ago
I notice that nowadays signalfd() looks like a much better solution to the signal problem, but I've never tried using it. I think I'll give it a go in my next project.
qhwudbebd|1 year ago
formerly_proven|1 year ago
fanf2|1 year ago
rwmj|1 year ago
lokar|1 year ago
growse|1 year ago