Thursday, December 14, 2006

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

4 comments:

Unknown said...

Thanks! This was useful information.

Unknown said...
This comment has been removed by the author.
Satya said...

Thanks a lot!

Gustavo Serra said...

Thank you!