Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit 8254ca4

Browse files
author
hack4code
committed
space
1 parent d6bd38d commit 8254ca4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2013-08-20-mtsig.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "多线程与信号"
44
date: 2013-08-20 21:00:00
55
categories: c multithread
66
---
7-
7+
88
### 信号与执行上下文
99
* 执行过程中由系统生成的同步信号 : SIGPIPE SIGSEGV SIGPIPE
1010
信号会在产生异常的线程的上下文中执行
@@ -20,7 +20,7 @@ categories: c multithread
2020
1. sigaction
2121
sigaction可以注册用户自定义的信号处理函数。要注意的是在信号处理函数中使用多线程的同步相关的函数,结果是为定义的,所以要慎重。
2222

23-
2. pthread_sigmask将信号阻塞,然后用sigwait在一个单独的线程中处理。
23+
2. pthread\_sigmask将信号阻塞,然后用sigwait在一个单独的线程中处理。
2424

25-
### 示例代码:
25+
### 示例代码
2626
github: [https://github.com/wartalker/c-small-programe/tree/master/mt-signal](https://github.com/wartalker/c-small-programe/tree/master/mt-signal)

0 commit comments

Comments
 (0)