Univention Bugzilla – Attachment 7756 Details for
Bug 41619
"NoSuchProcess: process no longer exists" in adconnector
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
41619.patch (text/plain), 764 bytes, created by
Florian Best
on 2016-06-21 09:44:51 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-06-21 09:44:51 CEST
Size:
764 bytes
patch
obsolete
>diff --git a/services/univention-ad-connector/umc/python/adconnector/__init__.py b/services/univention-ad-connector/umc/python/adconnector/__init__.py >index 0127042..7b80b85 100644 >--- a/services/univention-ad-connector/umc/python/adconnector/__init__.py >+++ b/services/univention-ad-connector/umc/python/adconnector/__init__.py >@@ -330,7 +330,10 @@ def __update_status(self): > > def __is_process_running( self, command ): > for proc in psutil.process_iter(): >- cmdline = proc.cmdline() if callable(proc.cmdline) else proc.cmdline >+ try: >+ cmdline = proc.cmdline() if callable(proc.cmdline) else proc.cmdline >+ except psutil.NoSuchProcess: >+ continue > if cmdline and fnmatch.fnmatch(' '.join(cmdline), command): > return True > return False
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 41619
: 7756