diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-25 21:47:51 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-25 21:47:51 +0100 |
commit | 2041c0c21ce8db1b191438a071cfed96125d830c (patch) | |
tree | ba50a116f0478a056e46b85ecadb18cba11f7df1 /src/shell.c | |
parent | f19b8c4d82380ae0defb6c6041270d815164b0d2 (diff) | |
download | fastd-2041c0c21ce8db1b191438a071cfed96125d830c.tar fastd-2041c0c21ce8db1b191438a071cfed96125d830c.zip |
Fix shell exit status warning condition
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index bcc22e1..d62bbf0 100644 --- a/src/shell.c +++ b/src/shell.c @@ -111,7 +111,7 @@ bool fastd_shell_exec(fastd_context_t *ctx, const fastd_peer_t *peer, const char else { if (WIFSIGNALED(result)) pr_error(ctx, "command exited with signal %i", WTERMSIG(result)); - else if (result) + else if (WEXITSTATUS(result)) pr_warn(ctx, "command exited with status %i", WEXITSTATUS(ret)); else ok = true; |