summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-21 03:36:26 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-21 03:36:26 +0200
commit986c4a1434cc61d2de560690ecc0d532a157d40a (patch)
tree74f4ed3854ad06a31e75279cd437b3299cb83d72 /proto-shell.c
parentb01ea9c06c71d4ec9cc1125a8be2ba8b6e1a887f (diff)
downloadnetifd-986c4a1434cc61d2de560690ecc0d532a157d40a.tar.gz
fix the exit status for the proto-shell task, use WEXITSTATUS
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-shell.c b/proto-shell.c
index fc16f76..3582319 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -155,7 +155,7 @@ proto_shell_task_cb(struct netifd_process *p, int ret)
return;
}
- state->last_error = ret;
+ state->last_error = WEXITSTATUS(ret);
state->proto.proto_event(&state->proto, IFPEV_LINK_LOST);
proto_shell_handler(&state->proto, PROTO_CMD_TEARDOWN, false);
}