From: Ryan Tomayko Date: 2011-03-05T17:07:15+09:00 Subject: Re: [ANN] posix-spawn 0.3.0 -- first public release (codename, "tigers blood") On Fri, Mar 4, 2011 at 11:08 PM, Charles Oliver Nutter wrote: > Did you know about the "spoon" gem? It's a very simple binding of > posix_spawn via FFI that works fine in JRuby too. It would sure be > nice if this could be an FFI solution, so it would work without a C > extension. Yes. I experimented with using spoon for JRuby support in Grit some time ago. Unfortunately, a large number of posix_spawn() features require real OS file descriptors and there was no standard/supported way of retrieving them for most standard Java stream types. That issue aside, I'm not opposed to using FFI so long as the performance profile is on par with the C extension. We certainly plan on supporting JRuby in some way down the road. I doubt the Process::spawn interface can be fully implemented without real fds, but we'd like the higher level POSIX::Spawn::Child class to be JRuby compatible. Ryan