diff options
author | dmikhalev <dmikhalev@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
commit | 3b5ee31ed70f690af39dfdec632060610b71b89e (patch) | |
tree | f137aebad00b8064ec63fcd03ebc9fef5121eb9f /util/system/daemon.cpp | |
parent | 3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf (diff) | |
download | ydb-3b5ee31ed70f690af39dfdec632060610b71b89e.tar.gz |
Restoring authorship annotation for <dmikhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/daemon.cpp')
-rw-r--r-- | util/system/daemon.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/daemon.cpp b/util/system/daemon.cpp index 130e6c8f45..ced376487a 100644 --- a/util/system/daemon.cpp +++ b/util/system/daemon.cpp @@ -1,17 +1,17 @@ #include <util/generic/yexception.h> -#include <cerrno> +#include <cerrno> #include <cstdlib> #include <util/system/info.h> -#if defined(_win_) +#if defined(_win_) #include <io.h> -#else +#else #include <sys/wait.h> #include <unistd.h> #include <fcntl.h> -#endif - +#endif + #include "daemon.h" #ifdef _unix_ @@ -62,18 +62,18 @@ static void CloseFromToExcept(int from, int to, const int* except) { goto dontclose; } } - while (close(s) == -1) { + while (close(s) == -1) { if (errno == EBADF) { - break; + break; } if (errno != EINTR) { ythrow TSystemError() << "close(" << s << ") failed"; } - } + } dontclose:; } -#endif /* _unix_ */ -} +#endif /* _unix_ */ +} bool NDaemonMaker::MakeMeDaemon(ECloseDescriptors cd, EStdIoDescriptors iod, EChDir chd, EParent parent) { (void)cd; |