From eece181d9f6462114fc59a15c9546d92f99a9499 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 20 Oct 2013 09:23:40 +0000 Subject: config: do not set cloexec on stdout/stderr This can cause problems if we fork/exec outside of Ruby's knowledge --- lib/yahns/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/yahns/config.rb') diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index bdd03d6..f1b3612 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -335,7 +335,7 @@ class Yahns::Config # :nodoc: @set[key] = path = "/dev/null" end File.open(path, 'a') { |fp| io.reopen(fp) } if String === path - io.close_on_exec = io.sync = true + io.sync = true end [ :logger, :pid, :worker_processes ].each do |var| -- cgit v1.2.3-24-ge0c7