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