Small fix for OS X. Without it, Gajim won't restart if it crashed.
This commit is contained in:
		
							parent
							
								
									49ad57084e
								
							
						
					
					
						commit
						bd472ba5be
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -331,8 +331,11 @@ def pid_alive():
 | 
				
			||||||
			return True
 | 
								return True
 | 
				
			||||||
		return False
 | 
							return False
 | 
				
			||||||
	elif sys.platform == 'darwin':
 | 
						elif sys.platform == 'darwin':
 | 
				
			||||||
		from osx import checkPID
 | 
							try:
 | 
				
			||||||
		return checkPID(pid, 'Gajim.bin')
 | 
								from osx import checkPID
 | 
				
			||||||
 | 
								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…
	
	Add table
		
		Reference in a new issue