We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b306a0d commit d03af07Copy full SHA for d03af07
src/test/compiletest/compiletest.rs
@@ -748,11 +748,15 @@ mod procsrv {
748
pipe_out.out,
749
pipe_err.out);
750
let pid = with_lib_path(execparms.lib_path, spawnproc);
751
- if pid == -1 { fail; }
752
os::libc::close(pipe_in.in);
753
os::libc::close(pipe_in.out);
754
os::libc::close(pipe_out.out);
755
os::libc::close(pipe_err.out);
+ if pid == -1 {
756
+ os::libc::close(pipe_out.in);
757
+ os::libc::close(pipe_err.in);
758
+ fail;
759
+ }
760
task::send(execparms.respchan,
761
{pid: pid,
762
outfd: pipe_out.in,
0 commit comments