1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Testing/Experimental:

- Move process renaming code to the misc module, and fix process ranming for 64 bit systems.  (Thanks to Helber Maciel)
- Move the error gtk method to the gui module. (Thanks to Helber Maciel)
- Removed a debugging print statement from monitor.py
- Fixed up a few docstrings/comments.

Testing:
- Fix bug where Connect button would become inactive after disconnecting from a network.
This commit is contained in:
imdano
2008-05-07 21:59:44 +00:00
parent 0d1ba53bb1
commit 6e0fe132b9
6 changed files with 44 additions and 41 deletions

View File

@@ -34,14 +34,7 @@ from dbus.mainloop.glib import DBusGMainLoop
import wpath
import misc
if sys.platform == 'linux2':
# Set process name. Only works on Linux >= 2.1.57.
try:
import dl
libc = dl.open('/lib/libc.so.6')
libc.call('prctl', 15, 'wicd-monitor\0', 0, 0, 0) # 15 is PR_SET_NAME
except:
print 'Failed to set the process name'
misc.RenameProcess("wicd-monitor")
if __name__ == '__main__':
wpath.chdir(__file__)
@@ -248,7 +241,6 @@ class ConnectionStatus():
self.reconnecting = True
daemon.SetCurrentInterface('')
print 'autoreconnect'
if daemon.ShouldAutoReconnect():
print 'Starting automatic reconnect process'
self.last_reconnect_time = time.time()