Linux中的Interrupted system call错误
生活随笔
收集整理的這篇文章主要介紹了
Linux中的Interrupted system call错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
最近公司的一個項目,上線時候遇到了一些問題,服務跑一段時間后連接不上。發現報了Interrupted system call這個錯誤引起的。
查了下資料,大致原因是系統繁忙處理不過來導致的。
根據網上搜索到的資料
https://github.com/JustinTulloss/zeromq.node/issues/171
http://comments.gmane.org/gmane.network.zeromq.devel/15253
做了點修改
do { rc = zmq_send(s, &msg, flags); } while ((rc == -1) && (zmq_errno() == EINTR));
后面測試時候,算是沒發生上面的錯誤了,希望再次上線后不要再出現這個錯誤。
轉載于:https://my.oschina.net/yeezia/blog/313348
總結
以上是生活随笔為你收集整理的Linux中的Interrupted system call错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 人工鱼群算法详解
- 下一篇: linux 其他常用命令