From 986c4a1434cc61d2de560690ecc0d532a157d40a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Oct 2011 03:36:26 +0200 Subject: fix the exit status for the proto-shell task, use WEXITSTATUS --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto-shell.c') 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); } -- cgit v1.2.1