为什么几个信号号体系结构取决于Linux? [英] Why are several signal numbers architecture-dependent on Linux?
问题描述
为什么几个信号编号在Linux上取决于体系结构?
Why are several signal numbers architecture-dependent on Linux?
以下是引号,以及来自 man 7 signal
的信号和信号编号列表:
Here is a quote along with a list of signals and signal numbers from man 7 signal
:
Linux支持以下列出的标准信号.几个信号编号取决于架构,如值"列.[...]给出三个值时,第一个通常对alpha和sparc有效,中间的一个对x86有效,手臂和大多数其他架构,最后一个是mips.
Linux supports the standard signals listed below. Several signal numbers are architecture-dependent, as indicated in the "Value" column. [...] Where three values are given, the first one is usually valid for alpha and sparc, the middle one for x86, arm, and most other architectures, and the last one for mips.
Signal Value
──────────────────
SIGHUP 1
SIGINT 2
SIGQUIT 3
SIGILL 4
SIGABRT 6
SIGFPE 8
SIGKILL 9
SIGSEGV 11
SIGPIPE 13
SIGALRM 14
SIGTERM 15
SIGUSR1 30,10,16
SIGUSR2 31,12,17
SIGCHLD 20,17,18
SIGCONT 19,18,25
SIGSTOP 17,19,23
SIGTSTP 18,20,24
SIGTTIN 21,21,26
SIGTTOU 22,22,27
推荐答案
除非您希望与其他东西兼容,否则它们是任意数字.
They are arbitrary numbers unless you are wanting to be compatible with something else.
即Alpha的Tru64 Unix.Solaris for Sparc,他们可能直接从 AT&T Unix SRV4 获得这些数字......
Namely Tru64 Unix for Alpha. Solaris for Sparc, they probably get these numbers from AT&T Unix SRV4 directly....
IRIX for MIPS ....就像Linux一样奇怪.
And IRIX for MIPS.... is just being weird like Linux.
Linux拥有自己的编号,以实现与自身的向后兼容性.
Linux has it's own numbers for backwards compatibility with itself.
这篇关于为什么几个信号号体系结构取决于Linux?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!