Skip to content

Commit 6abbe79

Browse files
committed
---
yaml --- r: 4269 b: refs/heads/master c: d03af07 h: refs/heads/master i: 4267: 5896f6c v: v3
1 parent 4dcc589 commit 6abbe79

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b306a0d714215717c7cc2fbabd7fd74438fe77e5
2+
refs/heads/master: d03af073b42497c693238f1e5c25a1b5628d6af6

trunk/src/test/compiletest/compiletest.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,11 +748,15 @@ mod procsrv {
748748
pipe_out.out,
749749
pipe_err.out);
750750
let pid = with_lib_path(execparms.lib_path, spawnproc);
751-
if pid == -1 { fail; }
752751
os::libc::close(pipe_in.in);
753752
os::libc::close(pipe_in.out);
754753
os::libc::close(pipe_out.out);
755754
os::libc::close(pipe_err.out);
755+
if pid == -1 {
756+
os::libc::close(pipe_out.in);
757+
os::libc::close(pipe_err.in);
758+
fail;
759+
}
756760
task::send(execparms.respchan,
757761
{pid: pid,
758762
outfd: pipe_out.in,

0 commit comments

Comments
 (0)