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
b1e6157d
Commit
b1e6157d
authored
Feb 17, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Bug#7838, "pipe_sig_handler should be static".
parent
c36f737d
Changes
2
Show 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
+2
-2
libmysql/libmysql.c
libmysql/libmysql.c
+3
-3
No files found.
libmysql/client_settings.h
View file @
b1e6157d
...
@@ -21,7 +21,7 @@ extern my_string mysql_unix_port;
...
@@ -21,7 +21,7 @@ extern my_string mysql_unix_port;
CLIENT_TRANSACTIONS | \
CLIENT_TRANSACTIONS | \
CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
sig_handler
pipe_sig_handler
(
int
sig
);
sig_handler
my_
pipe_sig_handler
(
int
sig
);
void
read_user_name
(
char
*
name
);
void
read_user_name
(
char
*
name
);
my_bool
handle_local_infile
(
MYSQL
*
mysql
,
const
char
*
net_filename
);
my_bool
handle_local_infile
(
MYSQL
*
mysql
,
const
char
*
net_filename
);
...
@@ -32,7 +32,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
...
@@ -32,7 +32,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_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,
my_
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
#define init_sigpipe_variables
#define init_sigpipe_variables
...
...
libmysql/libmysql.c
View file @
b1e6157d
...
@@ -92,7 +92,7 @@ my_bool net_flush(NET *net);
...
@@ -92,7 +92,7 @@ my_bool net_flush(NET *net);
#define unsigned_field(A) ((A)->flags & UNSIGNED_FLAG)
#define unsigned_field(A) ((A)->flags & UNSIGNED_FLAG)
static
void
append_wild
(
char
*
to
,
char
*
end
,
const
char
*
wild
);
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
mysql_client_init
=
0
;
static
my_bool
org_my_init_done
=
0
;
static
my_bool
org_my_init_done
=
0
;
...
@@ -294,11 +294,11 @@ mysql_debug(const char *debug __attribute__((unused)))
...
@@ -294,11 +294,11 @@ mysql_debug(const char *debug __attribute__((unused)))
**************************************************************************/
**************************************************************************/
sig_handler
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
));
DBUG_PRINT
(
"info"
,(
"Hit by signal %d"
,
sig
));
#ifdef DONT_REMEMBER_SIGNAL
#ifdef DONT_REMEMBER_SIGNAL
(
void
)
signal
(
SIGPIPE
,
pipe_sig_handler
);
(
void
)
signal
(
SIGPIPE
,
my_
pipe_sig_handler
);
#endif
#endif
}
}
...
...
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