Skip to content

Commit 50d26e3

Browse files
committed
o2-sim: Fix for merger exit status analysis
1 parent cddd928 commit 50d26e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

run/o2sim_parallel.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,8 @@ int main(int argc, char* argv[])
762762
// Handle mergerpid status separately
763763
if (cpid == mergerpid) {
764764
if (WIFEXITED(status)) {
765-
// anything other than 128 is indicative of error
766-
if (WEXITSTATUS(status) != 128) {
767-
LOG(error) << "Merger process exited with abnormal code " << WEXITSTATUS(status);
765+
if (WEXITSTATUS(status) != 0 || WEXITSTATUS(status) != 128) {
766+
LOG(error) << "Merger process exited with abnormal exit status " << WEXITSTATUS(status);
768767
errored = true;
769768
}
770769
} else if (WIFSIGNALED(status)) {

0 commit comments

Comments
 (0)