mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
merge
sql-common/client.c: Auto merged scripts/mysql_install_db.sh: Use local version
This commit is contained in:
@ -31,7 +31,7 @@ my_bool send_file_to_server(MYSQL *mysql, const char *filename);
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
|
#if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
|
||||||
#define init_sigpipe_variables sig_return old_signal_handler=(sig_return) 0
|
#define init_sigpipe_variables sig_return old_signal_handler=(sig_return) 0;
|
||||||
#define set_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE,pipe_sig_handler)
|
#define set_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE,pipe_sig_handler)
|
||||||
#define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
|
#define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
|
||||||
#else
|
#else
|
||||||
|
@ -514,7 +514,7 @@ net_safe_read(MYSQL *mysql)
|
|||||||
{
|
{
|
||||||
NET *net= &mysql->net;
|
NET *net= &mysql->net;
|
||||||
ulong len=0;
|
ulong len=0;
|
||||||
init_sigpipe_variables;
|
init_sigpipe_variables
|
||||||
|
|
||||||
/* Don't give sigpipe errors if the client doesn't want them */
|
/* Don't give sigpipe errors if the client doesn't want them */
|
||||||
set_sigpipe(mysql);
|
set_sigpipe(mysql);
|
||||||
@ -579,7 +579,7 @@ advanced_command(MYSQL *mysql, enum enum_server_command command,
|
|||||||
{
|
{
|
||||||
NET *net= &mysql->net;
|
NET *net= &mysql->net;
|
||||||
my_bool result= 1;
|
my_bool result= 1;
|
||||||
init_sigpipe_variables;
|
init_sigpipe_variables
|
||||||
|
|
||||||
/* Don't give sigpipe errors if the client doesn't want them */
|
/* Don't give sigpipe errors if the client doesn't want them */
|
||||||
set_sigpipe(mysql);
|
set_sigpipe(mysql);
|
||||||
@ -670,7 +670,7 @@ void end_server(MYSQL *mysql)
|
|||||||
DBUG_ENTER("end_server");
|
DBUG_ENTER("end_server");
|
||||||
if (mysql->net.vio != 0)
|
if (mysql->net.vio != 0)
|
||||||
{
|
{
|
||||||
init_sigpipe_variables;
|
init_sigpipe_variables
|
||||||
DBUG_PRINT("info",("Net: %s", vio_description(mysql->net.vio)));
|
DBUG_PRINT("info",("Net: %s", vio_description(mysql->net.vio)));
|
||||||
set_sigpipe(mysql);
|
set_sigpipe(mysql);
|
||||||
vio_delete(mysql->net.vio);
|
vio_delete(mysql->net.vio);
|
||||||
@ -1431,7 +1431,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
|
|||||||
#ifdef HAVE_SYS_UN_H
|
#ifdef HAVE_SYS_UN_H
|
||||||
struct sockaddr_un UNIXaddr;
|
struct sockaddr_un UNIXaddr;
|
||||||
#endif
|
#endif
|
||||||
init_sigpipe_variables;
|
init_sigpipe_variables
|
||||||
DBUG_ENTER("mysql_real_connect");
|
DBUG_ENTER("mysql_real_connect");
|
||||||
LINT_INIT(host_info);
|
LINT_INIT(host_info);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user