I asked a previous question
I start the server and client. The SIGPIPE signal crashed my server due to a broken pipe. I read that the specified flag prevents the signal from rising. My program now works and does not crash. But, I wonder what the consequences will be. What happens if I prevent a SIGPIPE increase?
Well, you should not mind: this is just another way of handling errors.
And using MSG_NOSIGNAL seems more elegant, it's better than ignoring SIGPIPE, as you might need this function elsewhere in your program.