From 5c09d7df7986f85cce48e5191481485794b79953 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 3 Mar 2021 20:42:06 -0600 Subject: [PATCH] Log startup/shutdown in mock syslog server --- testsuite/lib/exec/minlogd.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/lib/exec/minlogd.pl b/testsuite/lib/exec/minlogd.pl index 4d60095..64d99ef 100755 --- a/testsuite/lib/exec/minlogd.pl +++ b/testsuite/lib/exec/minlogd.pl @@ -182,6 +182,8 @@ sub accumulate_message () { # -- event loop +handle_message '<45>minlogd['.$$.']: begin logging'; + my $Rrdy = ''; do { # process syslog datagram input @@ -193,6 +195,7 @@ do { select $Rrdy=$Rchk, undef, undef, undef if $Running; } while ($Running); +handle_message '<45>minlogd['.$$.']: shutting down'; print "minlogd: shutting down\n"; cleanup; exit; -- 2.25.1