Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Kernel/Process spawn on Windows #3116

Open
headius opened this issue Jul 7, 2015 · 1 comment
Open

Implement Kernel/Process spawn on Windows #3116

headius opened this issue Jul 7, 2015 · 1 comment

Comments

@headius
Copy link
Member

headius commented Jul 7, 2015

For #3075, we restored the old non-spawn-based open3.rb for Windows users. That allows popen3 to continue working (as well as it did in 1.7) but it was not really a complete fix. The complete fix would be to get Kernel/Process.spawn working on Windows, so the stock open3.rb could be used.

This will take some effort, considering that there's no posix_spawn on Windows and we'll have to use win32 calls to do it. The code in MRI may be illustrative, but it's a lot to port right now.

Once completed, we should also restore the standard open3.rb rather than using our custom logic.

@RoyTinker
Copy link

RoyTinker commented Aug 29, 2016

Just ran into this on 9.1.2.0/Windows/jre8u45. I'm attempting to start a Python subprocess that will proxy requests from the rest of my ruby script, like so:

Open3.popen3('python','proxy.py') do |stdout, stderr, status, thread|
  # todo: read logged proxy port number, start client
end

This is currently erroring with NotImplementedError: waitpid unsupported or native support failed to load; see http://wiki.jruby.org/Native-Libraries. Running with -Xnative.verbose=true logs Successfully loaded native POSIX impl. and no errors other than the one I mentioned.

@headius headius mentioned this issue Mar 27, 2018
15 tasks
@byteit101 byteit101 self-assigned this Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants