When I call Kernel.fork()
on Windows, I get this error:
!! Unexpected error while processing request: fork() function is unimplemented on this machine
Is there an alternative way to fork while on Windows?
Try spawn()
- it's implemented for windows.
While the Windows OS does not support fork, the win32-process gem appears to support a substitute. Apparently there are some differences from the unix version though, see this question: fork with Ruby 1.8 and Windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With