mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
selftest: Exit skipped daemons on close(STDIN)
Without this, teardown_env() will take ages for environments with skipped daemons Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jan 29 11:06:53 UTC 2020 on sn-devel-184
This commit is contained in:
parent
5bc5b681c0
commit
3f0e0ee274
@ -10,6 +10,7 @@ use target::Samba3;
|
||||
use target::Samba4;
|
||||
use POSIX;
|
||||
use Cwd qw(abs_path);
|
||||
use IO::Poll qw(POLLIN);
|
||||
|
||||
sub new($$$$$) {
|
||||
my ($classname, $bindir, $srcdir, $server_maxtime) = @_;
|
||||
@ -677,7 +678,9 @@ sub fork_and_exec
|
||||
print("Skip $daemon_ctx->{NAME} received signal $signame");
|
||||
exit 0;
|
||||
};
|
||||
sleep($self->{server_maxtime});
|
||||
my $poll = IO::Poll->new();
|
||||
$poll->mask($STDIN_READER, POLLIN);
|
||||
$poll->poll($self->{server_maxtime});
|
||||
exit 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user