aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/interrupt_signals.h
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.ru>2022-02-10 16:46:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:32 +0300
commit00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (patch)
treecb7a9f4a92c0d4cc5a86eeed49ad71e810953c1f /util/system/interrupt_signals.h
parent83a8efcf3af051e3dd59c00d1d5dafc96412ec1e (diff)
downloadydb-00afc96e9c0298054b7386fa7fb9e3cc3d67b974.tar.gz
Restoring authorship annotation for <akhropov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/interrupt_signals.h')
-rw-r--r--util/system/interrupt_signals.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/system/interrupt_signals.h b/util/system/interrupt_signals.h
index 9f9c2427f1..e38f95908d 100644
--- a/util/system/interrupt_signals.h
+++ b/util/system/interrupt_signals.h
@@ -1,22 +1,22 @@
-#pragma once
-
-#include "platform.h"
-
-#include <csignal>
-
-#ifdef _win_
- #ifndef SIGHUP
+#pragma once
+
+#include "platform.h"
+
+#include <csignal>
+
+#ifdef _win_
+ #ifndef SIGHUP
#define SIGHUP 1 /* Hangup (POSIX). */
- #endif
-#endif
-
+ #endif
+#endif
+
/**
- * Set handler for interrupt signals.
- *
- * All OSes: SIGINT, SIGTERM (defined by C++ standard)
- * UNIX variants: Also SIGHUP
- * Windows: CTRL_C_EVENT handled as SIGINT, CTRL_BREAK_EVENT as SIGTERM, CTRL_CLOSE_EVENT as SIGHUP
+ * Set handler for interrupt signals.
+ *
+ * All OSes: SIGINT, SIGTERM (defined by C++ standard)
+ * UNIX variants: Also SIGHUP
+ * Windows: CTRL_C_EVENT handled as SIGINT, CTRL_BREAK_EVENT as SIGTERM, CTRL_CLOSE_EVENT as SIGHUP
*
* \param handler Signal handler to use. Pass nullptr to clear currently set handler.
- */
-void SetInterruptSignalsHandler(void (*handler)(int signum));
+ */
+void SetInterruptSignalsHandler(void (*handler)(int signum));