X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=proto-shell.c;h=3582319cb39ebb52f8e952f8f76d50a63acb9017;hp=fc16f76c6d8a09d4f0924fa82c0cb4264fe24037;hb=e8f450ba2e67716cf3ed70060a309b80aa24cf00;hpb=14f7651a6e61ccd870be78dd6b303057ea982414 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); }