summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-21 06:54:58 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-21 06:54:58 +0200
commitdb046dfd78c3e32e8e1a2f2bd42e1df99a303acd (patch)
tree8f2f4af52a1ec1cedc4001d76fbba30f14b485df /sql
parentd069c7b7fc5ea661ff106e38fe7a571c8434b167 (diff)
downloadmariadb-git-db046dfd78c3e32e8e1a2f2bd42e1df99a303acd.tar.gz
Fixed shutdown problem on HPUX
Docs/manual.texi: Changelog mysql-test/r/innodb.result: Update results after InnoDB optimizer changes.
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index c014f75fb84..c34f18da1ec 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -610,13 +610,20 @@ void kill_mysql(void)
{
DBUG_PRINT("error",("Got error %d from pthread_kill",errno)); /* purecov: inspected */
}
-#else
+#elif !defined(SIGNALS_DONT_BREAK_READ)
kill(current_pid,MYSQL_KILL_SIGNAL);
#endif
DBUG_PRINT("quit",("After pthread_kill"));
shutdown_in_progress=1; // Safety if kill didn't work
#ifdef SIGNALS_DONT_BREAK_READ
+ if (!abort_loop)
+ {
+ pthread_t tmp;
abort_loop=1;
+ if (pthread_create(&tmp,&connection_attrib, kill_server_thread,
+ (void*) 0))
+ sql_print_error("Error: Can't create thread to kill server");
+ }
#endif
DBUG_VOID_RETURN;
}