Download raw body.
gotd PID issue
On 2023/01/21 12:28:27 +0100, Stefan Sperling <stsp@stsp.name> wrote: > There is a mismatch between gotd process IDs shown by 'gotctl info' and > gotd's debug logs, and the actual process IDs shown by pgrep, top, and > in syslog. > > The reason is that the daemon(3) function forks and we don't take into > account that this changes the PID. > > This patch makes gotd store its own PID after daemon(3), and avoids > calling daemon(3) needlessly in child processes such that the PID > the parent has stored for them will remain correct. Yes, calling deamon only once in the main process is the right thing to do here. ok op@
gotd PID issue