about summary refs log tree commit homepage
path: root/test/inherit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/inherit.rb')
-rw-r--r--test/inherit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/inherit.rb b/test/inherit.rb
index ebbcf4c..365f4b7 100644
--- a/test/inherit.rb
+++ b/test/inherit.rb
@@ -152,10 +152,11 @@ class TestInherit < Test::Unit::TestCase
     mport = mgmt.addr[1]
     cmd = %W(cmogstored --docroot=#@tmpdir --httplisten=#@host:#@port
              --mgmtlisten=#@host:#{mport} --maxconns=100)
+    cmd << { 3 => mgmt.fileno, 4 => @srv.fileno }
     @pid = fork do
       ENV['LISTEN_PID'] = "#$$"
       ENV['LISTEN_FDS'] = '2'
-      exec(*cmd, 3 => mgmt.fileno, 4 => @srv.fileno)
+      exec(*cmd)
     end
 
     # just ensure HTTP works after being inherited