#58 Issue #57: fix standard stream handling (python >= 3.4)
Opened by brodersen4univention. Modified
brodersen4univention/python-daemon fix_std_stream_handling  into  master

Download 58.patch

With python >= 3.4 all newly opened files are not inheritable by default.
https://docs.python.org/3/library/os.html#fd-inheritance

While dup2 would set the new file descriptor to be inheritable, it
does that only if the file descriptors differ. If the file descriptors
that should be redirected don't differ, the inheritable flag needs to be
set manually.
If the inheritable flag is not set on the standard streams, child process are
started without any standard streams.

brodersen4univention commented

Issue: https://pagure.io/python-daemon/issue/57

Where is this test_system_stream defined?

The _ argument seems to be expecting another decorator; when I run this, it receives no actual value (and so raises TypeError).

Metadata Update from @bignose:
- Pull-request tagged with: more-info

Metadata