Download raw body.
gotd PID issue
On 23-01-21 12:28PM, Stefan Sperling 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. > > diff 96afb0d62311dd459395b8eba2216094c18dfb67 84f2eb46f8ccd3cfbe6c89ef275dac40b135e932 > commit - 96afb0d62311dd459395b8eba2216094c18dfb67 > commit + 84f2eb46f8ccd3cfbe6c89ef275dac40b135e932 > blob - 823a2d9d22e1f4f65df19bbbb7539f88ae4ce5a2 > blob + 8f1e402bf783c0f47b4b9da20d73bbde74a93bfc > --- gotd/gotd.c > +++ gotd/gotd.c yes, ok for me too! -- Mark Jamsek <fnc.bsdbox.org> GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68
gotd PID issue