View | Details | Raw Unified | Return to bug 41619
Collapse All | Expand All

(-)a/services/univention-ad-connector/umc/python/adconnector/__init__.py (-1 / +4 lines)
 Lines 330-336   def __update_status(self): Link Here 
330
330
331
	def __is_process_running( self, command ):
331
	def __is_process_running( self, command ):
332
		for proc in psutil.process_iter():
332
		for proc in psutil.process_iter():
333
			cmdline =  proc.cmdline() if callable(proc.cmdline) else proc.cmdline
333
			try:
334
				cmdline =  proc.cmdline() if callable(proc.cmdline) else proc.cmdline
335
			except psutil.NoSuchProcess:
336
				continue
334
			if cmdline and fnmatch.fnmatch(' '.join(cmdline), command):
337
			if cmdline and fnmatch.fnmatch(' '.join(cmdline), command):
335
				return True
338
				return True
336
		return False
339
		return False

Return to bug 41619