From: Felix Fietkau Date: Fri, 21 Oct 2011 01:36:26 +0000 (+0200) Subject: fix the exit status for the proto-shell task, use WEXITSTATUS X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=986c4a1434cc61d2de560690ecc0d532a157d40a fix the exit status for the proto-shell task, use WEXITSTATUS --- 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); }