redmine_git_remote icon indicating copy to clipboard operation
redmine_git_remote copied to clipboard

fork() not working on windows machines

Open causa-prima opened this issue 9 years ago • 2 comments

Ruby does not provide fork() under windows. I worked arround that by replacing the call to fork() in line 18 of poor_mans_capture3.rb with Process.spawn(*cmd) and deleting line 23 (exec(*cmd)). As I'm not a ruby-programmer I don't know if this might introduce other problems. Are there any you could think of? Or is this a valid approach and you should use that instead of using fork()?

causa-prima avatar Sep 15 '16 12:09 causa-prima

Cool, feel free to fork and test it! If it works, do a PR, and I'll ask a colleague who knows more Ruby than me to review it when possible. :)


Alex Dergachev Evolving Web Lead developer web design & development [email protected] http://evolvingweb.ca phone 514.844.4930 300 St Sacrement, #204

fax 514.807.7499 Montreal, QC, H2Y 1X4

On Thu, Sep 15, 2016 at 8:54 AM, Sebastian Schultz <[email protected]

wrote:

Ruby does not provide fork() under windows. I worked arround that by replacing the call to fork() in line 18 of poor_mans_capture3.rb with Process.spawn(_cmd) and deleting line 23 (exec(_cmd)). As I'm not a ruby-programmer I don't know if this might introduce other problems. Are there any you could think of? Or is this a valid approach and you should use that instead of using fork()?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dergachev/redmine_git_remote/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIS4LiR7ubmsfUzodOov3KbM7iybmIiks5qqUATgaJpZM4J91Rd .

dergachev avatar Sep 15 '16 20:09 dergachev

I have the same issue. If you can't fix the problem, could you state in the README that windows is not supported ?

Nodd avatar Nov 19 '18 11:11 Nodd