Commit 62c39a33 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Fixed kill_alarm test and got it working

parent c54ca046
......@@ -923,6 +923,7 @@ AC_ARG_WITH(alarm,
AC_MSG_CHECKING(whether to use alarms to implement socket timeout)
if test "$use_alarm" = no ; then
AC_DEFINE([NO_ALARM], [1], [No need to use alarm for socket timeout])
AC_DEFINE([SIGNAL_WITH_VIO_CLOSE], [1], [Need to use vio close for kill connection])
fi
AC_MSG_RESULT($use_alarm)
......
show processlist;
Id User Host db Command Time State Info
2 root localhost test Sleep 0 NULL
3 root localhost test Sleep 0 NULL
4 root localhost test Query 0 NULL show processlist
kill connection 3;
show processlist;
Id User Host db Command Time State Info
2 root localhost test Sleep 4 NULL
4 root localhost test Query 0 NULL show processlist
-- source include/not_embedded.inc
connect (con1, localhost, root,,);
connect (con2, localhost, root,,);
connection con1;
let $ID=`select connection_id()`;
connection con2;
show processlist;
eval kill connection $ID;
--sleep 4
show processlist;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment