1284
1284
/* terminate if no query being executed, or we already tried interrupting */
1285
1285
if (!executing_query || interrupted_query)
1288
1288
kill_mysql= mysql_init(kill_mysql);
1289
1289
if (!mysql_real_connect(kill_mysql,current_host, current_user, opt_password,
1290
1290
"", opt_mysql_port, opt_mysql_unix_port,0))
1293
1293
/* kill_buffer is always big enough because max length of %lu is 15 */
1294
1294
sprintf(kill_buffer, "KILL /*!50000 QUERY */ %lu", mysql_thread_id(&mysql));