linux 与信号集操作相关的函数
生活随笔
收集整理的這篇文章主要介紹了
linux 与信号集操作相关的函数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
以上函數的返回值
sigemptyset(), sigfillset(), sigaddset(), and sigdelset() return 0 onsuccess and -1 on error.sigismember() returns 1 if signum is a member of set, 0 if signum isnot a member, and -1 on error.參數介紹:
howSIG_BLOCK 設置阻塞The set of blocked signals is the union of the current set andthe set argument.SIG_UNBLOCK 解除阻塞The signals in set are removed from the current set of blockedsignals. It is permissible to attempt to unblock a signal whichis not blocked.SIG_SETMASK 設置set為新的阻塞信號集The set of blocked signals is set to the argument set.set 傳入的信號集 oldset 傳出的信號集return:
sigprocmask() returns 0 on success and -1 on error.讀取當前進程的未決信號集
man sigpending
設置屏蔽信號集,然后發送信號,然后打印當前未決信號集
總結
以上是生活随笔為你收集整理的linux 与信号集操作相关的函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux信号学习02
- 下一篇: 没有硝烟的战斗剧情介绍