flm01/mote/v1/openwrt/patches/245.ignore.dhcpc.sigterm.patch

18 lines
498 B
Diff

--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -616,10 +616,10 @@
timeout = INT_MAX;
break;
case SIGTERM:
- bb_info_msg("Received SIGTERM");
- if (opt & OPT_R) /* release on quit */
- perform_release(requested_ip, server_addr);
- goto ret0;
+ bb_info_msg("Received SIGTERM: ignoring!");
+ // if (opt & OPT_R) /* release on quit */
+ // perform_release(requested_ip, server_addr);
+ // goto ret0;
}
}
} /* for (;;) - main loop ends */