mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fixed Bug#7838, "pipe_sig_handler should be static".
This commit is contained in:
@ -92,7 +92,7 @@ my_bool net_flush(NET *net);
|
||||
#define unsigned_field(A) ((A)->flags & UNSIGNED_FLAG)
|
||||
|
||||
static void append_wild(char *to,char *end,const char *wild);
|
||||
sig_handler pipe_sig_handler(int sig);
|
||||
sig_handler my_pipe_sig_handler(int sig);
|
||||
|
||||
static my_bool mysql_client_init= 0;
|
||||
static my_bool org_my_init_done= 0;
|
||||
@ -294,11 +294,11 @@ mysql_debug(const char *debug __attribute__((unused)))
|
||||
**************************************************************************/
|
||||
|
||||
sig_handler
|
||||
pipe_sig_handler(int sig __attribute__((unused)))
|
||||
my_pipe_sig_handler(int sig __attribute__((unused)))
|
||||
{
|
||||
DBUG_PRINT("info",("Hit by signal %d",sig));
|
||||
#ifdef DONT_REMEMBER_SIGNAL
|
||||
(void) signal(SIGPIPE,pipe_sig_handler);
|
||||
(void) signal(SIGPIPE, my_pipe_sig_handler);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user