Univention Bugzilla – Attachment 10396 Details for
Bug 51524
ERROR:univention.service_info:Failed getting parent: invalid literal for int() with base 10: 'S'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
51524.patch (text/plain), 876 bytes, created by
Florian Best
on 2020-06-18 14:54:51 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2020-06-18 14:54:51 CEST
Size:
876 bytes
patch
obsolete
>diff --git base/univention-config-registry/python/univention/service_info.py base/univention-config-registry/python/univention/service_info.py >index 5bf8fb6e0c..ee8dedc8ac 100644 >--- base/univention-config-registry/python/univention/service_info.py >+++ base/univention-config-registry/python/univention/service_info.py >@@ -166,11 +166,11 @@ def pidof(name, docker='/var/run/docker.pid'): > stat = os.path.join('/proc', proc, 'stat') > try: > with open(stat, 'r') as fd: >- status = fd.read() >- ppid = int(status.split()[3], 10) >+ status = fd.readline() >+ ppid = int(status.split(')', 1)[-1].split()[1], 10) > children.setdefault(ppid, []).append(pid) > except (EnvironmentError, ValueError) as ex: >- log.error('Failed getting parent: %s', ex) >+ log.error('Failed getting parent: %s: %r', ex, status) > > def _running(): > yield cmd == [link]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51524
: 10396