diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2016-05-20 19:24:43 +0200 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2016-05-20 19:25:42 +0200 |
commit | 107872af9182e5bcc1a72c6eb770f15d1a93a8d4 (patch) | |
tree | 406041479dfe5f811240e1c5563395c13629a321 | |
parent | e5e875ded86a59469ac6eebb45a9cbb6f36f4c20 (diff) | |
download | enlightenment-107872af9182e5bcc1a72c6eb770f15d1a93a8d4.tar.gz |
enlightenment_open: correctly return the exist status code of the executed command
@fix and close T3555
-rw-r--r-- | src/bin/e_open.c | 3 |
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); } } |