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:
parent
8f5dbaa1d1
commit
13a50ad633
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue