Project

General

Profile

« Previous | Next » 

Revision 255e617b

Added by Sutou Kouhei almost 3 years ago

[ruby/fiddle] Add Fiddle::Closure.create and Fiddle::Closure.free

GitHub: fix GH-102

It's for freeing a closure explicitly.

We can't use Fiddle::Closure before we fork the process. If we do it,
the process may be crashed with SELinux.

See https://github.com/ruby/fiddle/issues/102#issuecomment-1241763091
for details.

Reported by Vít Ondruch. Thanks!!!

https://github.com/ruby/fiddle/commit/a0ccc6bb1b