dl module commit rocks, just put a comment, do it only in POSIX, pythonify (space after comma and all that stuff)

This commit is contained in:
Nikos Kouremenos 2006-08-29 21:59:58 +00:00
parent 8f5dbaa1d1
commit 13a50ad633
1 changed files with 7 additions and 6 deletions

View File

@ -41,11 +41,12 @@ from chat_control import ChatControlBase
from common import exceptions
try:
if os.name == 'posix': # dl module is Unix Only
try: # rename the process name to gajim
import dl
libc = dl.open('/lib/libc.so.6')
libc.call('prctl',15,'gajim\0',0,0,0)
except:
libc.call('prctl', 15, 'gajim\0', 0, 0, 0)
except:
pass
try: