CaptTofu/DBD-mysql — Issue #17: mysql_real_connect() and SIGPIPE
Author: tadam
Created: 2011-11-18 15:36:28+00:00
State: open

Hi,

If I set `$SIG{PIPE}` in my script and after this call `DBI->connect("DBI:mysql:...", ...)`, then I'll lose my signal handler.
As I have read, `mysql_real_connect`() from libmysqlclient have a flag callled `CLIENT_IGNORE_SIGPIPE`, it:

> Prevents the client library from installing a `SIGPIPE' signal handler.
> This can be used to avoid conflicts with a handler that the application has already installed.

So, is it good to pass this flag in DBD::mysql if our perl program already have some `$SIG{PIPE}`?
Maybe the code of DBD::mysql written in a such way intentionally, I'm not sure.