Pass stderr mode properly to vfork wrapper

This commit is contained in:
Robin Gareus 2019-03-07 21:40:14 +01:00
parent df8097e31e
commit 15cd1163fc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -901,6 +901,7 @@ SystemExec::start (StdErrMode stderr_mode, const char *vfork_exec_wrapper)
/* keep STDERR */
#if defined __APPLE__&& defined ASL_LOG_DESCRIPTOR_WRITE
::close(STDERR_FILENO);
stderr_mode = IgnoreAndClose; // for vfork
#endif
}