mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:01:40 +03:00
tests/*server.pl: flush output before executing subprocess
Also avoid shell processes staying around by using exec. This is necessary to avoid output data being buffering inside the process chain of Perl, Bash/Shell and our test server binaries. On non-Windows systems the exec will also make the subprocess replace the intermediate shell, but on Windows it will at least bind the processes together since there is no real fork or exec available. See: https://cygwin.com/cygwin-ug-net/highlights.html and: https://docs.microsoft.com/cpp/c-runtime-library/exec-wexec-functions Ref: https://github.com/curl/curl/pull/7530#issuecomment-900949010 Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes #7530
This commit is contained in:
parent
ebefa3b9f0
commit
5b1c2dd1db
6 changed files with 18 additions and 3 deletions
|
|
@ -152,4 +152,5 @@ if($verbose) {
|
|||
print STDERR "RUN: server/sws".exe_ext('SRV')." $flags\n";
|
||||
}
|
||||
|
||||
exec("server/sws".exe_ext('SRV')." $flags");
|
||||
$| = 1;
|
||||
exec("exec server/sws".exe_ext('SRV')." $flags");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue