ios 上sigpipe需要屏蔽

ios号sigpipe会导致app被杀死。

因此需要对sigpipe进行屏蔽。

 

signal(SIGPIPE, SIG_IGN)

如果连xcode进行调试,还会继续捕获sigpipe,但不影响app,点击继续即可。

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /opt/wordpress/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048