summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/e_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_open.c b/src/bin/e_open.c
index 045fa763cf..fa787e8259 100644
--- a/src/bin/e_open.c
+++ b/src/bin/e_open.c
@@ -8,6 +8,7 @@
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
+#include <sys/wait.h>
# ifdef E_API
# undef E_API
@@ -562,7 +563,7 @@ main(int argc, char *argv[])
}
free(cmds);
- return ret;
+ return WEXITSTATUS(ret);
}
}