Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upShould we set `CLIENT_IGNORE_SIGPIPE` for MySQL? #643
Comments
This comment has been minimized.
|
Unless I'm misreading the source, libmysqlclient will always install |
This comment has been minimized.
|
Going to |
This comment has been minimized.
|
This setting appears to be completely useless and broken since mysql/mysql-server@ebd2462 (or earlier, but that was the last time it was referenced in libmysqlclient). MySQL will always clobber any handlers installed for SIGPIPE, and we can do nothing about it other than writing a direct wire protocol implementation |
sgrif
closed this
Feb 8, 2017
This comment has been minimized.
|
I mean... Now that I think about it, it makes complete sense. Of course you wouldn't define "should we set this signal handler" as a connection option. It's a global thing. They should still update the docs and remove the define though. |
This comment has been minimized.
|
Also they should probably not clobber global signal handlers |
This comment has been minimized.
|
Just saying |
sgrif commentedFeb 8, 2017
One of the flags to
mysql_real_connectisCLIENT_IGNORE_SIGPIPE, which is documented asWe should probably answer the following questions: