otherwise either pending setup or teardown process might get killed. Also no need to kill a pending renew process.
Signed-off-by: Ulrich Weber <[email protected]> --- proto-shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto-shell.c b/proto-shell.c index c4039ed..574c574 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -162,6 +162,9 @@ proto_shell_handler(struct interface_proto_state *proto, } else if (cmd == PROTO_CMD_RENEW) { if (!(handler->proto.flags & PROTO_FLAG_RENEW_AVAILABLE)) return 0; + /* No renewing during pending processes, otherwise current process would be killed */ + if (proc->uloop.pending) + return 0; action = "renew"; } else { if (state->sm == S_TEARDOWN) -- 1.9.1 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
