diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-31 14:04:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-31 14:04:03 +0100 |
commit | e1a3aebafca9a9447a393100db4fc45943551630 (patch) | |
tree | 39672297b576e967bd2448d6a795e5485f6995b7 /sinksh/state.cpp | |
parent | 77b2173e73f16f33648226543788ea67096fb6d6 (diff) | |
download | sink-e1a3aebafca9a9447a393100db4fc45943551630.tar.gz sink-e1a3aebafca9a9447a393100db4fc45943551630.zip |
Ensure we get an appropriate exit code when a resource crashes.
Diffstat (limited to 'sinksh/state.cpp')
-rw-r--r-- | sinksh/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/state.cpp b/sinksh/state.cpp index 7e04d28..b7e8e5a 100644 --- a/sinksh/state.cpp +++ b/sinksh/state.cpp | |||
@@ -139,7 +139,7 @@ int State::commandStarted() const | |||
139 | 139 | ||
140 | void State::commandFinished(int returnCode) const | 140 | void State::commandFinished(int returnCode) const |
141 | { | 141 | { |
142 | SinkTrace() << "Command finished"; | 142 | SinkTrace() << "Command finished. Exit code: " << returnCode; |
143 | if (!s_hasEventLoop) { | 143 | if (!s_hasEventLoop) { |
144 | QCoreApplication::exit(returnCode); | 144 | QCoreApplication::exit(returnCode); |
145 | } else { | 145 | } else { |