gdb调试时,Program received signal SIGPIPE, Broken pipe.
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                gdb调试时,Program received signal SIGPIPE, Broken pipe.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                今天在gdb調試時,發現總是出現Program received signal SIGPIPE, Broken pipe,搜索了網上的資料,發現是在調試時,接收到了SIGPIPE這個signal信號導致調試被中斷。
By default, gdb captures SIGPIPE of a process and pauses it. However, some program ignores SIGPIPE. So, the default behavour of gdb is not desired when debugging those program. To avoid gdb stopping in SIGPIPE, use the following command in gdb.
?
解決方式:在gdb調試窗口中輸入以下命令即可,將接收到的SIGPIPE signal忽略
handle SIGPIPE nostop noprint nopass 或?handle SIGPIPE nostop noprint pass
總結
以上是生活随笔為你收集整理的gdb调试时,Program received signal SIGPIPE, Broken pipe.的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 第三方系统平台如何对接gooflow2.
 - 下一篇: R-CNN、Fast R-CNN、Fas