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
对某个进程发送SIGPIPE信号
sudo kill -SIGPIPE 3804250
对某个进程发送停止信号
sudo kill -SIGSTOP 3804250
对某个进程使其继续运行信号
sudo kill -SIGCONT 3804250