1

我正在尝试将 spring 1.4.0 与 rails 3.2.22/ruby 2.2.5 一起使用,并执行以下操作:

bundle exec spring testunit <test_file.rb>

输出这个:

/Users/igor/.rbenv/versions/2.2.5/gemsets/<app>/gems/spring-1.4.0/lib/spring/application/boot.rb:7:in 'for_fd': Bad file descriptor - not a socket file descriptor (Errno::EBADF) from /Users/igor/.rbenv/versions/2.2.5/gemsets/<app>/gems/spring-1.4.0/lib/spring/application/boot.rb:7:in '<top (required)>' from -e:1:in 'require' from -e:1:in '<main>'

从我在 Spring 源代码中收集的内容来看,错误指令是UNIXSocket.for_fd(3),它应该是第一个可用的文件句柄,那么为什么它被捕获为Bad file descriptor

任何帮助将不胜感激,谢谢!

4

0 回答 0