sigpipe

sigpipesigpipe
  1. Any program that sends on a TCP socket must explicitly deal with SIGPIPE in order to be robust .

    在TCP套接字上发送数据的任何程序都必须显示处理SIGPIPE以便保证健壮性。

  2. In this case , you 'll receive a SIGPIPE signal or , if this signal is blocked , the write function will return a-1 and set errno to EPIPE .

    在这种情况下,接收SIGPIPE信号,或如果该信号阻塞,write函数将返回-1并设置errno为EPIPE。