Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
08c56910
Commit
08c56910
authored
Jun 16, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
e090f2d0
60a260d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
libmysql/client_settings.h
libmysql/client_settings.h
+1
-1
sql-common/client.c
sql-common/client.c
+4
-4
No files found.
libmysql/client_settings.h
View file @
08c56910
...
...
@@ -31,7 +31,7 @@ my_bool send_file_to_server(MYSQL *mysql, const char *filename);
*/
#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 reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
#else
...
...
sql-common/client.c
View file @
08c56910
...
...
@@ -514,7 +514,7 @@ net_safe_read(MYSQL *mysql)
{
NET
*
net
=
&
mysql
->
net
;
ulong
len
=
0
;
init_sigpipe_variables
;
init_sigpipe_variables
/* Don't give sigpipe errors if the client doesn't want them */
set_sigpipe
(
mysql
);
...
...
@@ -579,7 +579,7 @@ advanced_command(MYSQL *mysql, enum enum_server_command command,
{
NET
*
net
=
&
mysql
->
net
;
my_bool
result
=
1
;
init_sigpipe_variables
;
init_sigpipe_variables
/* Don't give sigpipe errors if the client doesn't want them */
set_sigpipe
(
mysql
);
...
...
@@ -670,7 +670,7 @@ void end_server(MYSQL *mysql)
DBUG_ENTER
(
"end_server"
);
if
(
mysql
->
net
.
vio
!=
0
)
{
init_sigpipe_variables
;
init_sigpipe_variables
DBUG_PRINT
(
"info"
,(
"Net: %s"
,
vio_description
(
mysql
->
net
.
vio
)));
set_sigpipe
(
mysql
);
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
struct
sockaddr_un
UNIXaddr
;
#endif
init_sigpipe_variables
;
init_sigpipe_variables
DBUG_ENTER
(
"mysql_real_connect"
);
LINT_INIT
(
host_info
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment