Use SIG_IGN to ignore SIGPIPE. This happens when the server wants to
write to the client socket but the client has already disconnected.
Improved file serving