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 from select import select
import threading import threading
import subprocess import subprocess
import signal
import time
import logging import logging
from eventfd import EventFD from eventfd import EventFD
@@ -135,6 +137,8 @@ class DHCPClient:
if self.once: if self.once:
self.await_ip() self.await_ip()
else: else:
os.kill(self.proc.pid, signal.SIGUSR2)
time.sleep(0.05)
self.proc.terminate() self.proc.terminate()
if self.proc.wait(timeout=timeout) != 0: if self.proc.wait(timeout=timeout) != 0: