I have a server program that uses IPv4. The server has to attend multiple calls from client, so it creates a child process every time it accepts a client socket connection to deal with the client.
The child process is expected to read from client and then write to client socket. If it receives a SIGPIPE (from a bad client that closes before writing), it should terminate as the child's job is done. Do I explicitly declare a signal handler or does SIGPIPE terminate it by default? I am a beginner so please accept my ignorance if any.