浏览代码

Enable use of DHCPRELEASE

JDierkse 5 天之前
父节点
当前提交
aad25767f7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      net-dhcp/udhcpc.py

+ 2 - 0
net-dhcp/udhcpc.py

@@ -135,6 +135,8 @@ class DHCPClient:
             if self.once:
                 self.await_ip()
             else:
+                os.kill(self.proc.pid, signal.SIGUSR2)
+                time.sleep(0.05)
                 self.proc.terminate()
 
             if self.proc.wait(timeout=timeout) != 0: