Fix file descriptor leak
This commit is contained in:
parent
9321873eef
commit
6a3a370603
@ -179,6 +179,7 @@ class Test
|
|||||||
rd.close
|
rd.close
|
||||||
STDERR.reopen("/dev/null")
|
STDERR.reopen("/dev/null")
|
||||||
STDOUT.reopen(wr)
|
STDOUT.reopen(wr)
|
||||||
|
wr.close
|
||||||
Dir.chdir @repository
|
Dir.chdir @repository
|
||||||
exec("git", *args)
|
exec("git", *args)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user