Werk #7177: Fix background job warning "IOError: [Errno 9] Bad file descriptor"

Component Setup
Title Fix background job warning "IOError: [Errno 9] Bad file descriptor"
Date Feb 20, 2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.5.0p13 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When starting a background job an unproblematic error message like this could occur in the output of the background job log:

sys.stdin.close() IOError: [Errno 9] Bad file descriptor

This was caused by an unclean stdin/stdout/stderr handling during job startup since commit b15dfeb619c14c925b66f2a3437d213852204975.

To the list of all Werks