Explorar o código

Enable use of DHCPRELEASE

JDierkse hai 5 días
pai
achega
aad25767f7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: