linux程式退出時傳回值的含義

來源:互聯網
上載者:User
#define SIGHUP   1
進程由於控制終端死去或者控制終端發出起命令
#define SIGINT   2
鍵盤中斷所產生的訊號

#define SIGQUIT   3
鍵盤終止

#define SIGILL   4
非法的指令

#define SIGTRAP   5
進程遇到一個追蹤(trace)或者是一個中斷嵌套

#define SIGABRT   6
由abort系統調用所產生的中斷訊號

#define SIGIOT   6
類似於SIGABRT

#define SIGBUS   7
進程試圖使用不合理的記憶體

#define SIGFPE   8
浮點異常

#define SIGKILL   9
KILL

#define SIGUSR1  10
使用者自訂

#define SIGSEGV  11
段錯誤

#define SIGUSR2  12
使用者自訂

#define SIGPIPE  13
管道操作時沒有讀唯寫

#define SIGALRM  14
由alarm系統調用產生的timer時鐘訊號

#define SIGTERM  15
收到終端訊號的進程

#define SIGSTKFLT 16
堆疊錯誤

#define SIGCHLD  17
子進程向父進程發出的子進程已經stop或者終止的訊號

#define SIGCONT  18
繼續啟動並執行訊號

#define SIGSTOP  19
stop

#define SIGTSTP  20
鍵盤所產生的stop訊號

#define SIGTTIN  21
當運行在後狀態時卻需要讀取stdin的資料

#define SIGTTOU  22
當運行在後狀態時卻需要寫向stdout

#define SIGURG  23
socket的緊急情況

#define SIGXCPU  24
進程超額使用CPU分配的時間

#define SIGXFSZ  25
進程使用了超出系統規定檔案長度的檔案

#define SIGVTALRM 26
內部的alarm時鐘到期

#define SIGPROF  27
在一個程式段中描繪時鐘集到期

#define SIGWINCH 28
終端視窗的改變

#define SIGIO  29
非同步IO

#define SIGPOLL  SIGIO
pollable事件發生

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.