From 68c8046a553b2c611da398c331576f9dd2389494 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 1 Dec 2024 01:27:48 +0000 Subject: [PATCH] Record the sending PID before setting the flag saying we received a signal. --- src/pv/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pv/signal.c b/src/pv/signal.c index da534ff..78af20b 100644 --- a/src/pv/signal.c +++ b/src/pv/signal.c @@ -239,8 +239,8 @@ static void pv_sig_usr2( /*@unused@ */ __attribute__((unused)) return; if (NULL == info) return; - pv_sig_state->signal.rxusr2 = 1; pv_sig_state->signal.sender = info->si_pid; + pv_sig_state->signal.rxusr2 = 1; }