aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/sighandler
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/sighandler
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/sighandler')
-rw-r--r--library/cpp/sighandler/async_signals_handler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/sighandler/async_signals_handler.cpp b/library/cpp/sighandler/async_signals_handler.cpp
index 00ce1c18fb..ee75e157e5 100644
--- a/library/cpp/sighandler/async_signals_handler.cpp
+++ b/library/cpp/sighandler/async_signals_handler.cpp
@@ -25,9 +25,9 @@
#include <util/generic/hash.h>
namespace {
- volatile int SIGNAL_PIPE_WRITE_FD = 0; // will be initialized in ctor
+ volatile int SIGNAL_PIPE_WRITE_FD = 0; // will be initialized in ctor
- void WriteAllOrDie(const int fd, const void* buf, size_t bufsize) {
+ void WriteAllOrDie(const int fd, const void* buf, size_t bufsize) {
size_t totalBytesWritten = 0;
while (totalBytesWritten != bufsize) {
@@ -38,7 +38,7 @@ namespace {
}
}
- void PipeWriterSignalHandler(int, siginfo_t* info, void*) {
+ void PipeWriterSignalHandler(int, siginfo_t* info, void*) {
const ui8 signum = static_cast<ui8>(info->si_signo);
WriteAllOrDie(SIGNAL_PIPE_WRITE_FD, &signum, 1);
@@ -188,7 +188,7 @@ namespace {
// It such situation we have 2 options:
// - wait for auxiliary thread to die - which will cause dead lock
// - destruct variable, ignoring thread - which will cause data corruption.
- TAsyncSignalsHandler* SIGNALS_HANDLER = nullptr;
+ TAsyncSignalsHandler* SIGNALS_HANDLER = nullptr;
}
void SetAsyncSignalHandler(int signum, TAutoPtr<TEventHandler> handler) {