Trying to figure out why bgplgd terminates sometimes. Since there is a timeout firing at an unexpected time I want some extra info to figure out what kind of race this is.
-- :wq Claudio Index: slowcgi.c =================================================================== RCS file: /cvs/src/usr.sbin/bgplgd/slowcgi.c,v retrieving revision 1.4 diff -u -p -r1.4 slowcgi.c --- slowcgi.c 25 Aug 2022 16:49:18 -0000 1.4 +++ slowcgi.c 27 Oct 2022 13:01:20 -0000 @@ -505,7 +505,7 @@ slowcgi_timeout(int fd, short events, vo if (c->script_flags & SCRIPT_DONE) return; - ldebug("timeout fired"); + ldebug("timeout fired for pid %d", c->command_pid); if (c->timeout_fired) sig = SIGKILL; @@ -556,7 +556,7 @@ slowcgi_sig_handler(int sig, short event else c->command_status = WEXITSTATUS(status); - ldebug("exit %s%d", + ldebug("pid %d exit %s%d", pid, WIFSIGNALED(status) ? "signal " : "", c->command_status);