mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Improve process kill on windows
mysql-test/lib/My/SafeProcess.pm: Ifnore Ctrl-C in timer process Don't wait blocking for a preoces where start_kill fails Rewrite sart_kill to return 0 for error and > 1 for sucess mysql-test/lib/My/SafeProcess/safe_process_win.cc: Add missing fflush(stderr) in 'die'
This commit is contained in:
@ -85,6 +85,7 @@ static void die(const char* fmt, ...)
|
||||
va_end(args);
|
||||
if (int last_err= GetLastError())
|
||||
fprintf(stderr, "error: %d, %s\n", last_err, strerror(last_err));
|
||||
fflush(stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user