MCPcopy Create free account
hub / github.com/catboost/catboost / AbortProcessDramatically

Function AbortProcessDramatically

library/cpp/yt/system/exit.cpp:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void AbortProcessDramatically(int exitCode, TStringBuf exitCodeStr, TStringBuf message)
13{
14 fprintf(stderr, "\n");
15 if (message) {
16 fprintf(stderr, "*** %s\n", message.data());
17 }
18 fprintf(stderr, "*** Aborting process with exit code %d", exitCode);
19 if (exitCodeStr) {
20 fprintf(stderr, " (%s)", exitCodeStr.data());
21 }
22 fprintf(stderr, "\n");
23 _exit(exitCode);
24}
25
26////////////////////////////////////////////////////////////////////////////////
27

Callers 3

AbortOnOomFunction · 0.50
DoAllocateMethod · 0.50
AllocateMethod · 0.50

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected