Small fix for OS X. Without it, Gajim won't restart if it crashed.
This commit is contained in:
parent
49ad57084e
commit
bd472ba5be
|
@ -331,8 +331,11 @@ def pid_alive():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
|
try:
|
||||||
from osx import checkPID
|
from osx import checkPID
|
||||||
return checkPID(pid, 'Gajim.bin')
|
return checkPID(pid, 'Gajim.bin')
|
||||||
|
except ImportError:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
if not os.path.exists('/proc'):
|
if not os.path.exists('/proc'):
|
||||||
return True # no /proc, assume Gajim is running
|
return True # no /proc, assume Gajim is running
|
||||||
|
|
Loading…
Reference in New Issue