所以我运行了一个使用'dameons'宝石的ruby守护进程,每隔几秒就会使用
打开一个子进程Process.fork { ... do things ... }
这种情况已经好几天了,直到今天我只能得到这个错误
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
#<fatal: exception reentered>
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<IOError: stream closed>
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
它发生在每次迭代中。如果我在IRB中打开子进程它工作正常。我不太了解打开子流程,有谁知道为什么会发生这种情况?对不起,如果我留下了一些信息,它已经很晚了,我很沮丧。如果我听到另一个关于推进汽车零件的商业广告,我将失去它。