1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Do not crash on CTRL-C during then running mysqld --bootstrap

I'm not quite sure if this is correct way to fix it so please check
This commit is contained in:
peter@mysql.com
2002-07-31 15:04:22 +04:00
parent a1443a7e2c
commit 8c9116a745

View File

@ -706,8 +706,10 @@ pthread_handler_decl(handle_bootstrap,arg)
thd->dbug_thread_id=my_thread_id();
#if !defined(__WIN__) && !defined(OS2)
sigset_t set;
VOID(sigemptyset(&set)); // Get mask in use
VOID(pthread_sigmask(SIG_UNBLOCK,&set,&thd->block_signals));
VOID(sigemptyset(&set));
VOID(sigaddset(&set,SIGINT));
// Get mask in use and block SIGINT
VOID(pthread_sigmask(SIG_BLOCK,&set,&thd->block_signals));
#endif
if ((ulong) thd->variables.max_join_size == (ulong) HA_POS_ERROR)