Thursday, March 04, 2010

SIGPIPE

I was changing a send call to a writev and ran into an annoying problem. On the send call I had set the MSG_NOSIGNAL flag to stop any SIGPIPE signals if the socket I was writing to was closed, unfortunately I cannot set the same flag on writev! (I had originally switched from using write to send to be able to set the flag) On some systems (BSD) you can set the socket option SO_NOSIGPIPE to get a similar effect, but on Linux it doesn't look like this option is supported. The other option is to set the system to ignore a SIGPIPE, but there are issues with this if you do it naively, see Suppressing SIGPIPE in a library.

44 Comments:

Blogger any said...

喜歡看大家的文章,祝你順心~^^ ........................................

7:20 AM  
Blogger 婉婷婉婷 said...

I love readding, and thanks for your artical...................................................

10:39 PM  
Blogger 奕LonniePettus0908希 said...

動不一定每一次都成功,但坐而不行,絕無任何成功可言 ....................................................

12:35 AM  
Blogger 羅惠玲 said...

文章不求沽名釣譽,率性就是真的......................................................

4:58 AM  
Blogger G702aynelleKress0 said...

朝著既定的目標走,就不會迷失。..................................................

9:05 PM  
Blogger 思穎思穎 said...

行動養成習慣,習慣培養人格,人格影響命運..................................................

7:28 AM  
Blogger 巧生 said...

非常感謝~3Q~....................................................

4:38 PM  
Blogger 季洪雅 said...

偉大的致富萬能之鑰,正是幫你充分掌握自己心志所必須的自律自制..................................................

5:57 AM  
Blogger 妍慧 said...

朝著既定的目標走,就不會迷失。..................................................

5:59 AM  
Blogger Bob0104byWas0104ham said...

沒有友情,人生何樂?.............................................

11:37 PM  
Blogger Fe024lixV_Ferrari1 said...

不勞而獲的事情,並沒有價值.............................................

11:38 PM  
Blogger Be224nWann1 said...

北台灣視訊aio34c正妹 69成人網 080視訊聊天室iww 線上免費看成人片 百分百成人圖片 辣妹妹影音視訊聊天室 視訊交友551281 kk 視訊聊天室 免費a片 sex-情色視訊 夜未眠成人影城 視訊聊天網 aaa片免費看短片 正妹交友go uouo 視訊聊天交友 hi5 tv免費影片 av女優王國 546視訊聊天室 免費影音視訊聊天室 ut 視訊聊天室 sex story,辣妹影片直播 hilive成人情色網 線上a長片 美眉脫內衣影片 sex888入口aio甜心寶貝直播貼片 彩虹免費av影片 亞洲東洋視訊辣妹影片 視訊交友網fm358 love104 影音城 qk999成人論壇 免費視訊gogo 拓網學生族視訊777美女 免費成人影片sex,av女優 a 免費影片觀賞 免費視訊topchurch 免費線上 aa 片試看85CC 高雄援交本土自拍天堂 成人視訊elove 臺灣情色網hilive tv 546 視訊聊天室 線上免費av影片 視訊ggoo xvediox松島楓免費影片 免費聊天室 aa影音視訊聊天室 一對多視訊免費視訊辣妹 j 我愛 78 論壇 免費 a 片 兼職援交 免費a自拍偷拍g世代論壇

10:13 AM  
Blogger M12aeganT_Moe12 said...

go2av免費影片sex 0401 影音 live 秀視訊聊天交友 色美眉台中援交aa 片試看 a免費視訊聊天網 情人34C波霸美女 香蕉鮑魚俱樂部,免費av 免費線上 aa 片試看 g點無碼a片 性愛姿勢 辣妹sex story 視訊聊天室 sex888免費看影片波霸美女寫真 視訊美女pixnet 成人交友hibb 4u成人視訊 情人080視訊網 私密論壇sex888免費看影片論壇 Show-live視訊聊天室 辣妹貼圖a片天堂 a片免費看 情色視訊禁地論壇 日本 a 片,無碼影片,美女,sexy,a片天堂 小魔女免費影城 視訊美女sogo 色論壇 s38live秀 卡通aa片免費看自拍天堂 洪爺免費線上歐美A片段觀看 亞洲東洋影片 0941 影音視訊聊天室 18成人85cc影城0204movie 成人漫畫區月光論壇 a片-情色成人影片 免費視訊toolbox 707網愛聊天室 1111辣妹貼圖,寫真集辣妹 av無碼月光論壇辣妹視訊 視訊辣妹主播脫衣秀 aio性愛dvd辣妹影片直播 黑澀會美眉 mv 高雄視訊,qq 美女貼圖片區 5i176 免費視訊秀 168論壇視訊辣妹 a片天堂s383視訊 bt電影下載,aa 片 sexy girl video movie 080cc成人色網 後官0951主入口 視訊聊天評比 視訊交友聊天室 no8 sogo論壇視訊辣妹

10:13 AM  
Blogger HaroldM22 said...

your wife is very charming!............................................................

5:51 PM  
Blogger 筠銘 said...

Govern your thoughts when alone, and your tongue when in company...................................................

12:35 AM  
Blogger 佩GailBohanan1蓉 said...

It is never too late to learn. ............................................................

1:13 PM  
Blogger VinnieAuxie23254 said...

喘口氣,看個文章,謝謝您的格子囉~~..................................................

11:36 PM  
Blogger 萱祥 said...

Where did you purchase this product?..................................................

1:21 AM  
Blogger 韋富 said...

初次造訪,安安^^

11:34 PM  
Blogger 邦雄 said...

一棵樹除非在春天開了花,否則難望在秋天結果。.................................................................

3:01 PM  
Blogger 江婷 said...

一個人的價值,應該看他貢獻了什麼,而不是他取得了什麼.................................................................

11:45 PM  
Blogger 于庭 said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。............................................................

2:32 PM  
Blogger 懿綺懿綺 said...

如果成為一支火柴,也要點亮一個短暫的宇宙;如果是一隻烏鴉,也要叫疼閉塞的耳膜。.................................................................

5:07 AM  
Blogger 黃柏盈 said...

Riches serve a wise man but command a fool.............................................................

3:30 PM  
Blogger 吳婷婷 said...

希望能常常看到你的更新.......................................................

5:39 PM  
Blogger 吳婷婷 said...

光這幾句話就價值連城了,讀著讀著小弟的眼眶就濕了...............................................................

11:20 PM  
Blogger 吳婷婷 said...

A stitch in time saves nine...................................................................

6:20 AM  
Blogger 楊儀卉 said...

Beauty, unaccompanied by virtue, is as a flower without perfume...................................................................

6:20 AM  
Blogger 潘凱花潘凱花 said...

雖然不能常常來看~但還是跟你說聲加油~!!..................................................................

9:59 PM  
Blogger 淑福淑福淑福 said...

這麼優的部落格,不踩一下不開心..................................................

4:50 PM  
Blogger 正玲宇軒 said...

逛街不如逛部落格,省錢又開心啊............................................................

6:08 AM  
Blogger 陳陳廖淑娟詩蓁俊偉 said...

蛛絲馬跡皆學問、落花水面皆文章............................................................

1:45 AM  
Blogger 淑惠張 said...

希望能有更多心得與我們分享~ ............................................................

5:23 AM  
Blogger 凱許倫 said...

Lets cross the bridge when we come to it............................................................

11:42 AM  
Blogger 群育航學 said...

Rome was not built in a day............................................................

3:16 AM  
Blogger 王辛江淑萍康 said...

Pen and ink is wits plough...................................................................

10:29 PM  
Blogger 枝誠侑誠侑竹 said...

上來打聲招呼,祝你一切平安!............................................................

6:10 AM  
Blogger 怡潔 said...

你的部落格很棒,我期待更新喔............................................................

6:10 AM  
Blogger 冠陳儒 said...

More haste, less speed..................................................................

7:36 PM  
Blogger 香雅威君 said...

看到你的更新是一種幸福!..................................................................

8:25 PM  
Blogger 阿袁袁袁袁華 said...

No pains, no gains.......................................................................

8:26 PM  
Blogger 316 said...

寂寞又無聊 看到你的BLOG 加油喔!!..................................................

12:27 AM  
Blogger 孫邦柔 said...

It is never too late to learn.......................................................................

7:24 AM  
Blogger 明RoseH_Huls中 said...

好的blog需要我們一起努力!........................................

9:53 PM  

Post a Comment

<< Home