summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-06 12:09:59 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-06 12:09:59 +0100
commit831eaab3dbeeccd9daf1b8c873776e62270783a4 (patch)
tree5cdfe88a58effe4d431d01d7d664b7949b269204
parent134978255ba674870f67d7a65a051a8edc73b131 (diff)
downloadsupple-831eaab3dbeeccd9daf1b8c873776e62270783a4.tar.gz
HOST: Ensure sandbox's FDs are more likely to be closed cleanly
-rw-r--r--lib/supple/host.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/supple/host.lua b/lib/supple/host.lua
index fe8ccc1..cfaf98b 100644
--- a/lib/supple/host.lua
+++ b/lib/supple/host.lua
@@ -59,8 +59,9 @@ local function run_wrapper()
"supple-sandbox",
exe = wrapperpath,
stdin = fds[1],
--- stdout = fds[1],
--- stderr = fds[1],
+ stdout = -1,
+ stderr = -1,
+ close_in_child = { fds[1], fds[2] },
}
if not proc then
error(msg)