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
a37355fb
Commit
a37355fb
authored
Oct 07, 2004
by
jani@a80-186-41-201.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added option --sigint-ignore to mysql.cc
parent
724749e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
client/client_priv.h
client/client_priv.h
+2
-1
client/mysql.cc
client/mysql.cc
+10
-3
No files found.
client/client_priv.h
View file @
a37355fb
...
@@ -44,5 +44,6 @@ enum options_client
...
@@ -44,5 +44,6 @@ enum options_client
OPT_SHARED_MEMORY_BASE_NAME
,
OPT_FRM
,
OPT_SKIP_OPTIMIZATION
,
OPT_SHARED_MEMORY_BASE_NAME
,
OPT_FRM
,
OPT_SKIP_OPTIMIZATION
,
OPT_COMPATIBLE
,
OPT_RECONNECT
,
OPT_DELIMITER
,
OPT_SECURE_AUTH
,
OPT_COMPATIBLE
,
OPT_RECONNECT
,
OPT_DELIMITER
,
OPT_SECURE_AUTH
,
OPT_OPEN_FILES_LIMIT
,
OPT_SET_CHARSET
,
OPT_CREATE_OPTIONS
,
OPT_OPEN_FILES_LIMIT
,
OPT_SET_CHARSET
,
OPT_CREATE_OPTIONS
,
OPT_START_POSITION
,
OPT_STOP_POSITION
,
OPT_START_DATETIME
,
OPT_STOP_DATETIME
OPT_START_POSITION
,
OPT_STOP_POSITION
,
OPT_START_DATETIME
,
OPT_STOP_DATETIME
,
OPT_SIGINT_IGNORE
};
};
client/mysql.cc
View file @
a37355fb
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include <locale.h>
#include <locale.h>
#endif
#endif
const
char
*
VER
=
"14.
6
"
;
const
char
*
VER
=
"14.
7
"
;
/* Don't try to make a nice table if the data is too big */
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
#define MAX_COLUMN_LENGTH 1024
...
@@ -135,7 +135,7 @@ static my_bool info_flag=0,ignore_errors=0,wait_flag=0,quick=0,
...
@@ -135,7 +135,7 @@ static my_bool info_flag=0,ignore_errors=0,wait_flag=0,quick=0,
opt_xml
=
0
,
opt_nopager
=
1
,
opt_outfile
=
0
,
named_cmds
=
0
,
opt_xml
=
0
,
opt_nopager
=
1
,
opt_outfile
=
0
,
named_cmds
=
0
,
tty_password
=
0
,
opt_nobeep
=
0
,
opt_reconnect
=
1
,
tty_password
=
0
,
opt_nobeep
=
0
,
opt_reconnect
=
1
,
default_charset_used
=
0
,
opt_secure_auth
=
0
,
default_charset_used
=
0
,
opt_secure_auth
=
0
,
default_pager_set
=
0
;
default_pager_set
=
0
,
opt_sigint_ignore
=
0
;
static
ulong
opt_max_allowed_packet
,
opt_net_buffer_length
;
static
ulong
opt_max_allowed_packet
,
opt_net_buffer_length
;
static
uint
verbose
=
0
,
opt_silent
=
0
,
opt_mysql_port
=
0
,
opt_local_infile
=
0
;
static
uint
verbose
=
0
,
opt_silent
=
0
,
opt_mysql_port
=
0
,
opt_local_infile
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
...
@@ -394,6 +394,10 @@ int main(int argc,char *argv[])
...
@@ -394,6 +394,10 @@ int main(int argc,char *argv[])
}
}
if
(
!
status
.
batch
)
if
(
!
status
.
batch
)
ignore_errors
=
1
;
// Don't abort monitor
ignore_errors
=
1
;
// Don't abort monitor
if
(
opt_sigint_ignore
)
signal
(
SIGINT
,
SIG_IGN
);
else
signal
(
SIGINT
,
mysql_end
);
// Catch SIGINT to clean up
signal
(
SIGINT
,
mysql_end
);
// Catch SIGINT to clean up
signal
(
SIGQUIT
,
mysql_end
);
// Catch SIGQUIT to clean up
signal
(
SIGQUIT
,
mysql_end
);
// Catch SIGQUIT to clean up
...
@@ -573,6 +577,9 @@ static struct my_option my_long_options[] =
...
@@ -573,6 +577,9 @@ static struct my_option my_long_options[] =
{
"set-variable"
,
'O'
,
{
"set-variable"
,
'O'
,
"Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."
,
"Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"sigint-ignore"
,
OPT_SIGINT_IGNORE
,
"Ignore SIGINT (CTRL-C)"
,
(
gptr
*
)
&
opt_sigint_ignore
,
(
gptr
*
)
&
opt_sigint_ignore
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"one-database"
,
'o'
,
{
"one-database"
,
'o'
,
"Only update the default database. This is useful for skipping updates to other database in the update log."
,
"Only update the default database. This is useful for skipping updates to other database in the update log."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
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