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

(-)a/base/univention-config-registry/python/univention/service_info.py (-3 / +4 lines)
 Lines 65-74   def pidof( name ): Link Here 
65
		if not os.path.isfile( os.path.join( dir, 'stat' ) ):
65
		if not os.path.isfile( os.path.join( dir, 'stat' ) ):
66
			continue
66
			continue
67
		cmdline = os.path.join( dir, 'cmdline' )
67
		cmdline = os.path.join( dir, 'cmdline' )
68
		if not os.path.isfile( cmdline ):
68
		try:
69
			with open(cmdline) as fd:
70
				cmd = fd.readline()
71
		except (IOError, OSError):
69
			continue
72
			continue
70
		fd = open( cmdline )
71
		cmd = fd.readline()
72
		# kernel thread
73
		# kernel thread
73
		if not cmd:
74
		if not cmd:
74
			continue
75
			continue

Return to bug 40332