djberg96 / sys-proctable

A cross-platform Ruby interface for gathering process information on your operating system
Apache License 2.0
150 stars 33 forks source link

Support Truffleruby #84

Closed djberg96 closed 4 years ago

djberg96 commented 4 years ago

This PR dispenses with the custom fork stuff and just switches the tests over to use Process.spawn instead for Mac.

It also updates the CharArray handling so that it will work properly with Truffleruby, which apparently uses a FFI::Struct::CharArray instead of a FFI::StructLayout::CharArray, which caused a type check failure.