1
0
mirror of https://github.com/gryf/wicd.git synced 2026-04-17 11:13:34 +02:00

Make gui.error() calls optionally not block.

Make the lost dbus error message translatable.
This commit is contained in:
Dan O'Reilly
2008-12-16 01:19:26 -05:00
parent ba3bc2afc2
commit 556c40ad75
4 changed files with 19 additions and 11 deletions

View File

@@ -1571,7 +1571,10 @@ def sigterm_caught(sig=None, frame=None):
global child_pid
if child_pid:
print 'Daemon going down, killing wicd-monitor...'
os.kill(child_pid, signal.SIGTERM)
try:
os.kill(child_pid, signal.SIGTERM)
except OSError:
pass
print 'Removing PID file...'
if os.path.exists(wpath.pidfile):
os.remove(wpath.pidfile)