News for hackers. Stuff that matters.
Re:Writing my own init with Go by pjmlp on Tuesday February 09, 2016 @05:23PM (#11069298)
Writing any code in a signal handler besides setting a flag is a very bad idea, specially when writing code across UNIX compliant OSes.

Unless it changed, POSIX gives no guarantees of stack size and function calls re-entrancy guarantees depend a lot on the OS and compiler versions.

Hence the best approach in managed system languages is just to mark a signal as active and re-trigger it outside the handler when control gets back to user space.

There are no comments on this comment yet.