Enable use of DHCPRELEASE
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user