Causes of SIGPIPE under linux

writes a simple client and server test function. After calling accpet, server will write the listening socket, and a SIGPIPE will be generated on the server side.
excuse me, why is this?

Apr.07,2022

the connection is a sub-connection of accept, and the listening socket is not connected, so of course it will SIGPIPE

.
Menu