4 ms·
Which is great in theory, except that signal handlers are such an esoteric body of knowledge that very few people can do it at all, let alone do it properly. So
by kstenerud 5y ago
Which is great in theory, except that signal handlers are such an esoteric body of knowledge that very few people can do it at all, let alone do it properly. So, many libraries do it for them (which works so long as nobody uses the blocking or blocking-dependent APIs - which is generally true). Even the JVM taps SIGQUIT for dumping process info.
- R0b0t1 5y agoThe workaround for this you can find in SDL2 and some other libraries with event loops is having a default, library-provided setup routine and event loop. Know what you're doing? Set up signals yourself. Don't? Library sets it up for you.