From 5cc83d08f96fc4ee3514425adbc3c616e95be6ce Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 27 Oct 2022 13:24:22 +0000 Subject: [PATCH] Print the pid in some additional debug messages to be able to match them with the fork messages. OK tb@ --- usr.sbin/bgplgd/slowcgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bgplgd/slowcgi.c b/usr.sbin/bgplgd/slowcgi.c index ed76bcad0d7..f5fabf54ebf 100644 --- a/usr.sbin/bgplgd/slowcgi.c +++ b/usr.sbin/bgplgd/slowcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.4 2022/08/25 16:49:18 claudio Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.5 2022/10/27 13:24:22 claudio Exp $ */ /* * Copyright (c) 2020 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -505,7 +505,7 @@ slowcgi_timeout(int fd, short events, void *arg) 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, void *arg) else c->command_status = WEXITSTATUS(status); - ldebug("exit %s%d", + ldebug("pid %d exit %s%d", pid, WIFSIGNALED(status) ? "signal " : "", c->command_status); -- 2.20.1