diff options
author | deshevoy <deshevoy@yandex-team.ru> | 2022-02-10 16:46:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:56 +0300 |
commit | e988f30484abe5fdeedcc7a5d3c226c01a21800c (patch) | |
tree | 0a217b173aabb57b7e51f8a169989b1a3e0309fe /util/system/daemon.cpp | |
parent | 33ee501c05d3f24036ae89766a858930ae66c548 (diff) | |
download | ydb-e988f30484abe5fdeedcc7a5d3c226c01a21800c.tar.gz |
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/daemon.cpp')
-rw-r--r-- | util/system/daemon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/daemon.cpp b/util/system/daemon.cpp index 130e6c8f45e..8856c073d41 100644 --- a/util/system/daemon.cpp +++ b/util/system/daemon.cpp @@ -25,7 +25,7 @@ static bool Fork(EParent parent) { while (waitpid(pid, &status, 0) < 0 && errno == EINTR) { } if (parent == callExitFromParent) { - _exit(0); + _exit(0); } else { return true; } @@ -40,7 +40,7 @@ static bool Fork(EParent parent) { pid = fork(); if (pid > 0) { - _exit(0); + _exit(0); } else if (pid < 0) { ythrow TSystemError() << "Cannot second fork"; } |