Skip to content

Commit

Permalink
Merge branch 'master' into kazuho/path-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Apr 25, 2024
2 parents 273e857 + c499e2e commit 9a4c645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/e2e.t
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,10 @@ package SpawnedProcess {
exec @$cmd;
die "failed to exec @{[$cmd->[0]]}:$?";
}
while (`netstat -na` !~ /^udp.*\s(127\.0\.0\.1|0\.0\.0\.0|\*)[\.:]$listen_port\s/m) {
for (1..10) {
if (`netstat -na` =~ /^udp.*\s(127\.0\.0\.1|0\.0\.0\.0|\*)[\.:]$listen_port\s/m) {
last;
}
if (waitpid($self->{pid}, POSIX::WNOHANG) == $self->{pid}) {
die "failed to launch @{[$cmd->[0]]}:$?";
}
Expand Down

0 comments on commit 9a4c645

Please sign in to comment.