在哪里可以找到有关 Linux 信号的详细文档?

Ija*_*han 3 linux documentation signals

当我们这样做时,kill -l我们会得到所有受支持信号的列表,但是是否有任何详细描述每个信号的手册页?

ter*_*don 14

是的man 7 signal,其中包括下表:

   Signal     Value     Action   Comment
   ??????????????????????????????????????????????????????????????????????
   SIGHUP        1       Term    Hangup detected on controlling terminal
                                 or death of controlling process
   SIGINT        2       Term    Interrupt from keyboard
   SIGQUIT       3       Core    Quit from keyboard
   SIGILL        4       Core    Illegal Instruction
   SIGABRT       6       Core    Abort signal from abort(3)
   SIGFPE        8       Core    Floating point exception
   SIGKILL       9       Term    Kill signal
   SIGSEGV      11       Core    Invalid memory reference
   SIGPIPE      13       Term    Broken pipe: write to pipe with no
                                 readers
   SIGALRM      14       Term    Timer signal from alarm(2)
   SIGTERM      15       Term    Termination signal
   SIGUSR1   30,10,16    Term    User-defined signal 1
   SIGUSR2   31,12,17    Term    User-defined signal 2
   SIGCHLD   20,17,18    Ign     Child stopped or terminated
   SIGCONT   19,18,25    Cont    Continue if stopped
   SIGSTOP   17,19,23    Stop    Stop process
   SIGTSTP   18,20,24    Stop    Stop typed at terminal
   SIGTTIN   21,21,26    Stop    Terminal input for background process
   SIGTTOU   22,22,27    Stop    Terminal output for background process
Run Code Online (Sandbox Code Playgroud)

  • @IjazKhan 那是一个大约 500 行的手册页。我只包含了最相关的部分,如果你想了解更多细节,我建议你通读一遍。 (8认同)