Skip to content

Commit

Permalink
Make ProcessResult#ExitStatus and CheckResult#exit_status 64-bit ints
Browse files Browse the repository at this point in the history
so that they can hold Windows exit codes like 3221225477 (>2147483647).
  • Loading branch information
Al2Klimov committed Sep 17, 2024
1 parent 31c42dc commit 0605577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/base/process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "base/i2-base.hpp"
#include "base/dictionary.hpp"
#include <cstdint>
#include <iosfwd>
#include <deque>
#include <vector>
Expand All @@ -25,7 +26,7 @@ struct ProcessResult
pid_t PID;
double ExecutionStart;
double ExecutionEnd;
long ExitStatus;
int_fast64_t ExitStatus;
String Output;
};

Expand Down
4 changes: 3 additions & 1 deletion lib/icinga/checkresult.ti
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#include <cstdint>

library icinga;

namespace icinga
Expand Down Expand Up @@ -50,7 +52,7 @@ class CheckResult
[state] Timestamp execution_end;

[state] Value command;
[state] int exit_status;
[state] int_fast64_t exit_status;

[state, enum] ServiceState "state";
[state, enum] ServiceState previous_hard_state;
Expand Down

0 comments on commit 0605577

Please sign in to comment.