这两天正好在看TLPI,有一处问题,正好给Mark写了一封信,人家回答也比较nice,不过更多么。。还是靠google了
SIGLOST This signal name exists on Linux, but is unused.
基本上我这边的Linux相关代码,都没有使用这个值,甚至一些架构(如MIPS)连comments这样的待遇都么有。
1 2 3 4 5 6 |
72 #define SIGIO 29 73 #define SIGPOLL SIGIO 74 /* 75 #define SIGLOST 29 76 */ 77 #define SIGPWR 30 |
只有在Linux.SPARC上才找到这个信号的定义
1 2 3 4 |
76 #define SIGWINCH 28 77 #define SIGLOST 29 78 #define SIGPWR SIGLOST 79 #define SIGUSR1 30 |
当然,Solaris 10也有找到
1 |
#define SIGLOST 37 /* resource lost (eg, record-lock lost) */</em></em> |
觉得比较有趣,记一下,顺便记一下Linux下 man signal(7)的描述
BUGS
SIGIO and SIGLOST have the same value. The latter is commented out in the kernel source, but the build process of some software still thinks that signal 29 is SIGLOST.