mirror of
https://github.com/wangdoc/clang-tutorial.git
synced 2026-05-11 00:38:16 +08:00
@@ -55,7 +55,7 @@ signal(SIGINT, orig_handler);
|
|||||||
SIG_DFL 表示默认的处理函数。
|
SIG_DFL 表示默认的处理函数。
|
||||||
|
|
||||||
```c
|
```c
|
||||||
signal(SIGINT, SIG_IGN);
|
signal(SIGINT, SIG_DFL);
|
||||||
```
|
```
|
||||||
|
|
||||||
上面示例中,SIGINT 的处理函数是默认处理函数,由当前实现决定。
|
上面示例中,SIGINT 的处理函数是默认处理函数,由当前实现决定。
|
||||||
|
|||||||
Reference in New Issue
Block a user