Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workaround for broken MariaDB clients which overwrite SIGPIPE handler #196

Closed
wants to merge 1 commit into from

Commits on Sep 6, 2023

  1. Add a workaround for broken MariaDB clients which overwrite SIGPIPE h…

    …andler
    
    MariaDB Connector/C 3.0.0 in function mysql_server_init() for non-Windows
    systems started setting SIGPIPE handler to SIG_IGN. This breaks Perl
    applications which installed its own SIGPIPE signal handler.
    
    As a workaround use Perl rsignal_save() function to save existing SIGPIPE
    handler before calling mysql_server_init() and after that restore saved
    handler via Perl rsignal_restore() function.
    
    Add a test which verifies that DBI->connect() which calls DBD::MariaDB's
    mariadb_dr_connect() function and which calls mysql_server_init(), does not
    overwrite $SIG{PIPE} handler set in Perl code.
    
    Fixes: perl5-dbi#170
    See: http://jira.mariadb.org/browse/CONC-591
    pali committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    8789e23 View commit details
    Browse the repository at this point in the history