Univention Bugzilla – Attachment 7397 Details for
Bug 40332
services/start_manual: IOError
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
40332.patch (text/plain), 711 bytes, created by
Florian Best
on 2016-01-08 17:50 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-01-08 17:50 CET
Size:
711 bytes
patch
obsolete
>diff --git a/base/univention-config-registry/python/univention/service_info.py b/base/univention-config-registry/python/univention/service_info.py >index 217690d..6842de1 100644 >--- a/base/univention-config-registry/python/univention/service_info.py >+++ b/base/univention-config-registry/python/univention/service_info.py >@@ -65,10 +65,11 @@ def pidof( name ): > if not os.path.isfile( os.path.join( dir, 'stat' ) ): > continue > cmdline = os.path.join( dir, 'cmdline' ) >- if not os.path.isfile( cmdline ): >+ try: >+ with open(cmdline) as fd: >+ cmd = fd.readline() >+ except (IOError, OSError): > continue >- fd = open( cmdline ) >- cmd = fd.readline() > # kernel thread > if not cmd: > continue
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 40332
: 7397