Add the base inherited fd to the application logging fd

Fixes #1585
This commit is contained in:
Frank Denis 2021-01-22 09:15:40 +01:00
parent 213695f651
commit d0f981156b
1 changed files with 1 additions and 1 deletions

View File

@ -345,8 +345,8 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
if !*flags.Child {
FileDescriptors = append(FileDescriptors, dlog.GetFileDescriptor())
} else {
dlog.SetFileDescriptor(os.NewFile(uintptr(InheritedDescriptorsBase+FileDescriptorNum), "logFile"))
FileDescriptorNum++
dlog.SetFileDescriptor(os.NewFile(uintptr(3), "logFile"))
}
}
if !*flags.Child {