Initialize child_pid, thanks to David Cantrell
This commit is contained in:
1 parent
b65a37aeff
commit
466d9c4283
1 file changed
+1
@@ -1807,6 +1807,7 @@ def main(argv):
|
|||||||
bus = dbus.SystemBus()
|
bus = dbus.SystemBus()
|
||||||
wicd_bus = dbus.service.BusName('org.wicd.daemon', bus=bus)
|
wicd_bus = dbus.service.BusName('org.wicd.daemon', bus=bus)
|
||||||
daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect)
|
daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect)
|
||||||
|
child_pid = None
|
||||||
if not no_poll:
|
if not no_poll:
|
||||||
child_pid = Popen([wpath.python, "-O",
|
child_pid = Popen([wpath.python, "-O",
|
||||||
os.path.join(wpath.daemon, "monitor.py")],
|
os.path.join(wpath.daemon, "monitor.py")],
|
||||||
|
|||||||
Reference in new issue
Block a user