diff options
author | akhropov <akhropov@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
commit | 298c6da79f1d8f35089a67f463f0b541bec36d9b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/interrupt_signals.h | |
parent | 00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (diff) | |
download | ydb-298c6da79f1d8f35089a67f463f0b541bec36d9b.tar.gz |
Restoring authorship annotation for <akhropov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/interrupt_signals.h')
-rw-r--r-- | util/system/interrupt_signals.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/util/system/interrupt_signals.h b/util/system/interrupt_signals.h index e38f95908d..9f9c2427f1 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)); |