In source code, the SIGPIPE handler must be explicitness set to SIG_INT.
see http://stackoverflow.com/questions/7...ls-and-sigpipe
In Qt Creator, in "Preferences" -> "Debugger" -> in tab "GDB", section "Additional Startup Commands" -> next command must be typed: handle SIGPIPE nostop noprint pass
(http://ahlamnote.blogspot.ro/2006/12...e-sigpipe.html)
gdb stops at SIGPIPE
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 folloing command in gdb:
handle SIGPIPE nostop noprint pass
Bookmarks