From d0f981156b694742b99bd714353f49b6ddbcbfc5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 22 Jan 2021 09:15:40 +0100 Subject: [PATCH] Add the base inherited fd to the application logging fd Fixes #1585 --- dnscrypt-proxy/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index de610592..0fe9ba05 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -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 {