mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Fix build check
This commit is contained in:
parent
0ed92d85e2
commit
aa539937fb
@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
~QueryInterruptHandler() { exit_on_signal.test_and_set(); }
|
~QueryInterruptHandler() { exit_on_signal.test_and_set(); }
|
||||||
|
|
||||||
bool cancelled() { return exit_on_signal.test(); }
|
static bool cancelled() { return exit_on_signal.test(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
/// This signal handler is set only for sigint.
|
/// This signal handler is set only for sigint.
|
||||||
@ -106,7 +106,7 @@ void ClientBase::setupSignalHandler()
|
|||||||
new_act.sa_flags = 0;
|
new_act.sa_flags = 0;
|
||||||
|
|
||||||
#if defined(OS_DARWIN)
|
#if defined(OS_DARWIN)
|
||||||
sigemptyset(&sa.sa_mask);
|
sigemptyset(&new_act.sa_mask);
|
||||||
#else
|
#else
|
||||||
if (sigemptyset(&new_act.sa_mask))
|
if (sigemptyset(&new_act.sa_mask))
|
||||||
throw Exception(ErrorCodes::CANNOT_SET_SIGNAL_HANDLER, "Cannot set signal handler.");
|
throw Exception(ErrorCodes::CANNOT_SET_SIGNAL_HANDLER, "Cannot set signal handler.");
|
||||||
|
Loading…
Reference in New Issue
Block a user