signal

SIGNAL(7)                  Linux Programmer's Manual                 SIGNAL(7)



åå
       signal - æå¹ãªã·ã°ãã«ã®ä¸è¦§

説æ
       Linuxã ãµãã¼ãããã·ã°ãã«ã®ä¸è¦§ã 以ä¸ã«ç¤ºãã ã·ã°ãã«çªå·ã®å¹¾ã¤ãã¯ã¢ã¼ã‐
       ãã£ã¯ãã£ä¾åã§ããã æåã«ãPOSIX.1ã«å®ç¾©ããã¦ããã·ã°ãã«ã示ãã


       ã·ã°ãã«      å¤      åä½   ã³ã¡ã³ã
       ────────────────────────────────────────────────────────────────────
       SIGHUP        1       A    å¶å¾¡ãã¦ããã¿ã¼ããã«(controlling terminal)
                                  ã®ãã³ã°ã¢ãããæ¤åºããããããã¯ãå¶å¾¡ãã¦
                                  ããããã»ã¹(controlling process)ãæ»ãã ã
       SIGINT        2       A    ãã¼ãã¼ãããã®å²ãè¾¼ã¿(Interrupt)
       SIGQUIT       3       A    ãã¼ãã¼ãã«ããä¸æ¢(Quit)
       SIGILL        4       A    ä¸å½ãªå½ä»¤
       SIGABRT       6       C    abort(3)ããã®ä¸æ(Abort)ä¿¡å·
       SIGFPE        8       C    æµ®åå°æ°ç¹ä¾å¤
       SIGKILL       9      AEF   Killã·ã°ãã«
       SIGSEGV      11       C    ä¸å½ãªã¡ã¢ãªåç§
       SIGPIPE      13       A    ãã¤ãç ´å£: èªã¿æã®ç¡ããã¤ãã¸ã®æ¸ãåºã
       SIGALRM      14       A    alarm(1)ããã®ã¿ã¤ãã¼ã·ã°ãã«
       SIGTERM      15       A    çµäº(termination)ã·ã°ãã«
       SIGUSR1   30,10,16    A    ã¦ã¼ã¶å®ç¾©ã·ã°ãã« 1
       SIGUSR2   31,12,17    A    ã¦ã¼ã¶å®ç¾©ã·ã°ãã« 2
       SIGCHLD   20,17,18    B    åããã»ã¹ã®ã¹ãããåã¯çµäº
       SIGCONT   19,18,25         ã¹ãããç¶æããã®åé
       SIGSTOP   17,19,23   DEF   ããã»ã¹ã®ã¹ããã
       SIGTSTP   18,20,24    D    端æ«(tty)ããå¥åãããã¹ããã
       SIGTTIN   21,21,26    D    ããã¯ã°ã©ã³ãããã»ã¹ã¸ã®ç«¯æ«ããã®å¥å
       SIGTTOU   22,22,27    D    ããã¯ã°ã©ã³ãããã»ã¹ããã®ç«¯æ«ã¸ã®åºå

       ãã®ä»ã®ç¨®ãã®ã·ã°ãã«


       ä¿¡å·          å¤      åä½   ã³ã¡ã³ã
       ─────────────────────────────────────────────────────────────────────────
       SIGTRAP        5       CG    ãã¬ã¼ã¹/ãã¬ã¼ã¯ãã¤ã³ã ãã©ãã
       SIGIOT         6       CG    IOTãã©ãã. SIGABRTã¨å義
       SIGEMT       7,-,7      G
       SIGBUS      10,7,10    AG    ãã¹ã¨ã©ã¼
       SIGSYS      12,-,12     G    ã«ã¼ãã³ã¸ã®å¼ãæ°ãä¸æ£ (SVID)
       SIGSTKFLT    -,16,-    AG    æ°å¤æ¼ç®ããã»ããµã«ãããã¹ã¿ãã¯ãã©ã«ã
       SIGURG      16,23,21   BG    ã½ã±ããã®ç·æ¥äºæ(urgent condition) (4.2 BSD)
       SIGIO       23,29,22   AG    å¥åºåãå¯è½ã«ãªã£ã (4.2 BSD)
       SIGPOLL                AG    SIGIOã¨å義 (System V)
       SIGCLD       -,-,18     G    SIGCHLDã¨å義
       SIGXCPU     24,24,30   AG    CPUå®è¡æéå¶éè¶é (4.2 BSD)
       SIGXFSZ     25,25,31   AG    ãã¡ã¤ã«ãµã¤ãºå¶éè¶é (4.2 BSD)
       SIGVTALRM   26,26,28   AG    ä»®æ³ã¢ã©ã¼ã ã¯ãã㯠(4.2 BSD)
       SIGPROF     27,27,29   AG    profileã¢ã©ã¼ã ã¯ããã¯
       SIGPWR      29,30,19   AG    é»æºåªå¤±(Power failure) (System V)
       SIGINFO      29,-,-     G    SIGPWRã¨å義
       SIGLOST      -,-,-     AG    ãã¡ã¤ã«ããã¯ã失ã£ã
       SIGWINCH    28,28,20   BG    ã¦ã£ã³ã㥠ãªãµã¤ãº ã·ã°ãã« (4.3 BSD, Sun)
       SIGUNUSED    -,31,-    AG    æªä½¿ç¨ã·ã°ãã«
       (ããã§ã- ã¯ãã®ã¢ã¼ã‐
       ãã£ã¯ãã£ã«ããã¦æªå®è£ã®ã·ã°ãã«ã示ãã3ã¤ã®å¤ãä¸ãããã¦ãããã®ã¯ãï¼ã¤ç®ã®ãã®ã
       alpha(DEC alpha chip)㨠sparc(SUN sparc chip)㧠æå¹ãªå¤ã§ããã çä¸‐
       ã®å¤ãi386㨠ppcã§æå¹ãª å¤ã§ããã æå¾ã®ãã®ã¯ mipsã§ã® å¤ã§ããã ã·ã°ãã«29ã¯
       alphaã§ã¯ SIGINFO
        / SIGPWR
        ã§ãããã sparc ã§ã¯ SIGLOST ã§ããã)

       "åä½" ã®æ¬ã®è¨å·ã¯ä»¥ä¸ã®ãããªæå³ãæã¤ã

       A      ããã©ã«ãã®åä½ã¯ãããã»ã¹ã®çµäº(terminate the process)ã

       B      ããã©ã«ãã®åä½ã¯ããã®ã·ã°ãã«ã®ç¡è¦(ignore the signal)ã

       C      ããã©ã«ãã®åä½ã¯ãã³ã¢ ãã³ã(dump core)ã

       D      ããã©ã«ãã®åä½ã¯ãããã»ã¹ã®ã¹ããã(stop the process)ã

       E      ãã£ããããäºã®åºæ¥ãªãã·ã°ãã«

       F      ç¡è¦ã§ããªãã·ã°ãã«

       G      POSIX.1ã«æºæ ããªãã·ã°ãã«

æºæ
       POSIX.1

ãã°
       SIGIO 㨠SIGLOST ã¯åãå¤ãæã¤ã
       å¾è(SIGLOST)ã¯ã«ã¼ãã«ã½ã¼ã¹ã§ã¯ã³ã¡ã³ãã¢ã¦ãããã¦ããã ãããããã¾ã ã«signal 29
       ã SIGLOST ã§ããã¨ã¿ãªãã¦ãã«ãããããããªã½ããã¦ã§ã¢ãããã¤ãåå¨ããã

é¢é£é ç®
       kill(1), kill(2), setitimer(2).

訳è
       ä¸ éæ <takafumi@yk.rim.or.jp>



Linux 1.3.88                     1996å¹´4æ14æ¥                       SIGNAL(7)