Enable use of DHCPRELEASE

This commit is contained in:
2026-01-30 10:14:55 +01:00
parent 0118b2ce46
commit 988c969985
+4
View File
@@ -8,6 +8,8 @@ from os import path
from select import select
import threading
import subprocess
import signal
import time
import logging
from eventfd import EventFD
@@ -135,6 +137,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: