flush streams before fork or messages may be written twice
lilydjwg opened this issue · 0 comments
lilydjwg commented
I got many the following messages because on each child exit it will be printed to journald:
Apr 2 15:24:56 lilyforest dns_proxy[24863]: [*] Listening on: 0.0.0.0:5354
Apr 2 15:24:56 lilyforest dns_proxy[24863]: [*] Using SOCKS proxy: 127.0.0.1:7115
Apr 2 15:24:56 lilyforest dns_proxy[24863]: [*] Will drop priviledges to nobody:nobody
Apr 2 15:24:56 lilyforest dns_proxy[24863]: [*] Loaded 10 DNS servers from /etc/dns_proxy/resolv.conf.
See my commit to fix this: lilydjwg@f3a03c8