From: Jacob Bachmeyer Date: Thu, 4 Mar 2021 02:42:06 +0000 (-0600) Subject: Log startup/shutdown in mock syslog server X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5c09d7df7986f85cce48e5191481485794b79953;p=gatekeeper.git Log startup/shutdown in mock syslog server --- 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;