Module: check_mk
Branch: master
Commit: cf2b593b8666d4d3a992cc88c81e4555ae6d613a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf2b593b8666d4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 28 17:29:43 2018 +0200
Removed c buffer flushing of stderr redurector
Change-Id: Ie5e1fde150aa56c6eac74ef274e4eeef537a94ae
---
web/plugins/userdb/ldap.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 0aa505b..c9b6ce9 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -47,7 +47,6 @@ import time
import copy
from contextlib import contextmanager
-import ctypes
import io
import sys
import tempfile
@@ -1227,9 +1226,6 @@ multisite_user_connectors['ldap'] = LDAPUserConnector
# | the help of this wrapper in case the LDAP logging debug level is on |
# '----------------------------------------------------------------------'
-libc = ctypes.CDLL(None)
-c_stderr = ctypes.c_void_p.in_dll(libc, 'stderr')
-
@contextmanager
def stderr_redirector(stream):
# The original fd stderr points to. Usually 1 on POSIX systems.
@@ -1237,8 +1233,6 @@ def stderr_redirector(stream):
def _redirect_stderr(to_fd):
"""Redirect stderr to the given file
descriptor."""
- # Flush the C-level buffer stderr
- libc.fflush(c_stderr)
# Flush and close sys.stderr - also closes the file descriptor (fd)
sys.stderr.close()
# Make original_stderr_fd point to the same file as to_fd