Small fix for OS X. Without it, Gajim won't restart if it crashed.

This commit is contained in:
js 2008-08-24 06:15:14 +00:00
parent 49ad57084e
commit bd472ba5be
1 changed files with 5 additions and 2 deletions

View File

@ -331,8 +331,11 @@ def pid_alive():
return True
return False
elif sys.platform == 'darwin':
from osx import checkPID
return checkPID(pid, 'Gajim.bin')
try:
from osx import checkPID
return checkPID(pid, 'Gajim.bin')
except ImportError:
return
try:
if not os.path.exists('/proc'):
return True # no /proc, assume Gajim is running