Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/rsyslog8: patch for forking issue due to close_range() call
Add patch from upstream: rsyslog/rsyslog@599b5c7 After fork if the child process uses close_range to close open file descriptors it has no way to exempt the parentPipeFD causing a failure to signal successful startup to the parent process. This causes failures on all systems that aren't Linux that implement close_range. 1. Loop through file descriptors between beginClose and MAX(parentPipeFD,dbgGetDbglogFd()) making sure not to close those two file descriptors. 2. Potentially use close_range to close all file descriptors above MAX(parentPipeFD,dbgGetDbglogFd()) PR: 274509 Reported by: Helmut Ritter Obtained from: rsyslog/rsyslog#5254
- Loading branch information