aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/system/exit.cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-08-02 12:04:49 +0300
committerbabenko <babenko@yandex-team.com>2024-08-02 12:18:17 +0300
commit23b7c61b3876a421a9f239646c2f67c70877d21e (patch)
tree080f664dac1dc44ce20cebe488942f1066f0d4be /library/cpp/yt/system/exit.cpp
parent99d0a5c88a19f2a5310c8bfe5ed63ef53e8ce00b (diff)
downloadydb-23b7c61b3876a421a9f239646c2f67c70877d21e.tar.gz
Refactor and unify exit codes
ec1d0c473e709e8aad76b4e190a75ad4125a9ce2
Diffstat (limited to 'library/cpp/yt/system/exit.cpp')
-rw-r--r--library/cpp/yt/system/exit.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/library/cpp/yt/system/exit.cpp b/library/cpp/yt/system/exit.cpp
new file mode 100644
index 0000000000..b17f6c5ad7
--- /dev/null
+++ b/library/cpp/yt/system/exit.cpp
@@ -0,0 +1,14 @@
+#include "exit.h"
+
+namespace NYT {
+
+////////////////////////////////////////////////////////////////////////////////
+
+void AbortProcess(int exitCode)
+{
+ _exit(exitCode);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+
+} // namespace NYT