What's the single best reference on the topic of (POSIX) signals?

妖精的绣舞 提交于 2019-12-10 17:51:43

问题


Signals seem to be one of those areas that should be conceptually simple and easy to explain but I have never come across one source that is both comprehensive, lucidly written, and up to date. In part this seems to be because of historical cruft, lots of exceptions to rules, different programming standards, the confusion threads throw into the mix, real-time additions, etc.

What's your best written, most complete source on unix/linux/posix signals? Web sites, books, stone tablets, whatever, are acceptable.


回答1:


Maybe not comprehensive or lucid, but the following is generally up to date for your platform:

man signal 



回答2:


Advanced Programming in the UNIX Environment (you may see it referred to as APUE).




回答3:


Re: the comments to check man pages: Whenever I encounter man page failure (wrt either lucidity or completeness), I hit up OpenBSD's version. At least nine times out of ten, it's a night and day difference.

So my suggestion in this case is man sigaction & man signal.




回答4:


Not the clearest documentation, but it's free and comprehensive: the UNIX spec at opengroup.org.

Section 2.4 Signal Concepts: http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_04.html




回答5:


The POSIX signal reference page, by OpenGroup+IEEE:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html

I take it that since you mentioned POSIX in brackets, you don't really want a formal POSIX conformance necessarily, but many of the people (me including) searching for "posix signal reference" end up with your question high up there in the results, and I hope the link takes them to what they are looking for.




回答6:


W. Richard Stevens is hard to beat on most things UNIX. I own at least 5 of his books and I think they are classics that should be on any UNIX System Programmer's shelf. Cheers.

UNIX Network Programming, Vol 2. Second Edition here http://www.amazon.com/UNIX-Network-Programming-Interprocess-Communications/dp/0130810819



来源:https://stackoverflow.com/questions/2419258/whats-the-single-best-reference-on-the-topic-of-posix-signals

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!