-# $OpenBSD: Syslogd.pm,v 1.8 2015/01/01 19:58:48 bluhm Exp $
+# $OpenBSD: Syslogd.pm,v 1.9 2015/01/22 00:34:32 bluhm Exp $
# Copyright (c) 2010-2015 Alexander Bluhm <bluhm@openbsd.org>
# Copyright (c) 2014 Florian Riehm <mail@friehm.de>
open(my $fh, '>', $self->{conffile})
or die ref($self), " create conf file $self->{conffile} failed: $!";
print $fh "*.*\t$self->{outfile}\n";
- print $fh "*.*\t|dd of=$self->{outpipe} status=none\n";
+ print $fh "*.*\t|dd of=$self->{outpipe}\n";
my $memory = $self->{memory};
print $fh "*.*\t:$memory->{size}:$memory->{name}\n" if $memory;
my $loghost = $self->{loghost};
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=4',
get_testlog() => 1,
- qr/syslogd: loghost .* connection error/ => 2,
+ qr/syslogd: loghost .* connection error/ => '>=2',
},
},
server => {
-# $OpenBSD: funcs.pl,v 1.11 2015/01/16 11:51:59 bluhm Exp $
+# $OpenBSD: funcs.pl,v 1.12 2015/01/22 00:34:32 bluhm Exp $
# Copyright (c) 2010-2015 Alexander Bluhm <bluhm@openbsd.org>
#
sub check_out {
my ($r, %args) = @_;
+ unless ($args{pipe}{nocheck}) {
+ $r->loggrep("bytes transferred", 1) or sleep 1;
+ }
+
foreach my $name (qw(file pipe)) {
next if $args{$name}{nocheck};
my $file = $r->{"out$name"} or die;