Permalink
Browse files

Close ASDL schemas so that descriptors aren't leaking.

They were taking up descriptors 5 and 6 which might have been a problem.
  • Loading branch information...
Andy Chu
Andy Chu committed Jul 2, 2017
1 parent e8dbf85 commit 191a487505f44eaca14a7531931c90f8d53fb2c1
Showing with 6 additions and 2 deletions.
  1. +1 −1 core/builtin.py
  2. +1 −0 core/runtime.py
  3. +1 −0 osh/ast_.py
  4. +3 −1 test/wild2.sh
View
@@ -699,7 +699,7 @@ def Set(argv, exec_opts, mem):
if not argv: # empty
# TODO: If no arguments are given, it shows functions/vars? Why not show
# other state?
print('TODO')
print('TODO: set without arguments')
return 0
arg, i = set_spec.Parse(argv)
View
@@ -27,3 +27,4 @@ def _ParseAndMakeTypes(f, root):
f = util.GetResourceLoader().open('core/runtime.asdl')
root = sys.modules[__name__]
_ParseAndMakeTypes(f, root)
f.close()
View
@@ -140,3 +140,4 @@ def _ParseAndMakeTypes(f, root):
f = util.GetResourceLoader().open('osh/osh.asdl')
root = sys.modules[__name__]
_ParseAndMakeTypes(f, root)
f.close()
View
@@ -91,7 +91,9 @@ sh-config-status() {
local out=_tmp/wild2/$(basename $sh)-py-configure
pushd $out
$sh -x ./config.status
#$sh -x ./config.status
$sh ./config.status
#strace -e dup2,fcntl -- $sh ./config.status
popd
echo status=$?

0 comments on commit 191a487

Please sign in to comment.