mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
selftest: Abort early on SIGPIPE.
This commit is contained in:
parent
7ac4a71072
commit
36ffe4f467
@ -53,4 +53,5 @@ msg_ops = subunithelper.FilterOps(out, opts.prefix, expected_failures,
|
||||
try:
|
||||
sys.exit(subunithelper.parse_results(msg_ops, statistics, sys.stdin))
|
||||
except subunithelper.ImmediateFail:
|
||||
sys.stdout.flush()
|
||||
sys.exit(1)
|
||||
|
@ -166,6 +166,14 @@ my $prefix = "./st";
|
||||
my @includes = ();
|
||||
my @excludes = ();
|
||||
|
||||
sub pipe_handler {
|
||||
my $sig = shift @_;
|
||||
print STDERR "Exiting early because of SIGPIPE.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$SIG{PIPE} = \&pipe_handler;
|
||||
|
||||
sub find_in_list($$)
|
||||
{
|
||||
my ($list, $fullname) = @_;
|
||||
|
Loading…
Reference in New Issue
Block a user