15 ms·
Related: Unix signals are deemed "unfixable" by some: https://lwn.net/Articles/414618/ https://lwn.net/Articles/414618/
by nine_k 10y ago
Related: Unix signals are deemed "unfixable" by some: https://lwn.net/Articles/414618/ https://lwn.net/Articles/414618/
- stuckagain 10y agoWhere "some" includes everyone who has ever had to use them.
- quotemstr 10y agoThat's an extreme perspective. I've made extensive use of signals in programs that have shipped to hundreds of millions of users. If you're careful, they work fine. Yes, POSIX needs something like NT's vectored exception handlers that could allow multiple users of the same signal to cooperate: but that's an API problem, not something inherently "unfixable" about a program being interrupted and temporarily doing something else for a bit.
- SFJulie 10y agoUnix signal are an OS try at giving user a portable abstraction for software interrupts (HW Int & trap). It confusingly employs much of the jargon (masking, priorities, bottom halves...) http://stackoverflow.com/questions/13341870/signals-and-interrupts-a-comparison http://stackoverflow.com/questions/13341870/signals-and-inte... I have the intuition knowing the HW/ASM & the code but ignoring how POSIX works (I read stevens, but I am not having all my answers) that unices reimplement in SW what the HW does with wires. Maybe this could be fixable at the HW level? (and maybe I guess requiring kernel privileges)?