summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-server-tcp-error.pl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-22 15:01:17 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-22 15:01:17 +0000
commit024d0751e9b1fcc40a90e2fc57ca424babeb5ee9 (patch)
tree6b5d8a207143fc7c41237e5d8a4bcc770045bd46 /regress/usr.sbin/syslogd/args-server-tcp-error.pl
parentecdc03979598bf9cb38b3576ff9f7ce6812c4a23 (diff)
In the sendsyslog-dropped test the client has to write a log message
before syslogd is running. To fix a race in regress, delay the syslogd startup until the message has been written. For debugging add the process class to all die messages.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-server-tcp-error.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-server-tcp-error.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.sbin/syslogd/args-server-tcp-error.pl b/regress/usr.sbin/syslogd/args-server-tcp-error.pl
index 292f3cced80..4681c6876e7 100644
--- a/regress/usr.sbin/syslogd/args-server-tcp-error.pl
+++ b/regress/usr.sbin/syslogd/args-server-tcp-error.pl
@@ -19,7 +19,7 @@ our %args = (
func => sub {
my $self = shift;
${$self->{syslogd}}->loggrep("loghost .* connection error", 5)
- or die "no connection error in syslogd.log";
+ or die ref($self), " no connection error in syslogd.log";
write_log($self);
},
},
@@ -36,7 +36,7 @@ our %args = (
func => sub {
my $self = shift;
setsockopt(STDOUT, SOL_SOCKET, SO_LINGER, pack('ii', 1, 0))
- or die "set socket linger failed: $!";
+ or die ref($self), " set socket linger failed: $!";
},
loggrep => {},
},