From 11aa2fd8954c449e0d84f5af1e8cc70b6c3c2b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 8 Oct 2020 11:52:51 +0200 Subject: [PATCH] Revert "Start server process in dir where cmd was called" This reverts commit 20d3a5f03e0e758a887cfa95d63c0af185d79341. --- lib/spring/application.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/spring/application.rb b/lib/spring/application.rb index 2332bd98..f072be73 100644 --- a/lib/spring/application.rb +++ b/lib/spring/application.rb @@ -172,11 +172,6 @@ def serve(client) end end - # Ensure we boot the process in the directory the command was called from, - # not from the directory Spring started in - original_dir = Dir.pwd - Dir.chdir(env['PWD'] || original_dir) - pid = fork { Process.setsid IGNORE_SIGNALS.each { |sig| trap(sig, "DEFAULT") } @@ -242,7 +237,6 @@ def serve(client) # (i.e. to prevent `spring rake -T | grep db` from hanging forever), # even when exception is raised before forking (i.e. preloading). reset_streams - Dir.chdir(original_dir) end def terminate