Method: Spring::Client::Run#boot_server
- Defined in:
- lib/spring/client/run.rb
#boot_server ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/spring/client/run.rb', line 31 def boot_server env.socket_path.unlink if env.socket_path.exist? pid = fork { require "spring/server" Spring::Server.boot } until env.socket_path.exist? _, status = Process.waitpid2(pid, Process::WNOHANG) exit status.exitstatus if status sleep 0.1 end end |