|
[
Permalink
| « Hide
]
Michal Kubeček added a comment - 25/Jun/06 10:40 AM
Patch against 2.1.0.13360: if isql is interactive, SIGINT interrupts a query (only select). For non-interactive isql, program is terminated.
Fixed wrong initial value of Interrupt_flag.
Thanks Michal!
I'll write Windows code and commit together. Michal, at first glance I've think your patch is posix specific, but it works in Windows too.
But testing in Windows, second Ctrl+C causes process termination without entering in query_abort. So I've changed it to call SetConsoleCtrlHandler returning appropriate value at query_abort and everything works correctly. I do have only one comment, why remove "#include <signal.h>"? We use signal and SIGINT, should it really be removed? It is not removed, it was included twice: once unconditionally and once depending on HAVE_SIGNAL_H. So I removed first #include and left only the second (conditional).
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||