Processes and fork management in Ruby have traditionally relied on PIDs, leading to race conditions and potential security issues in high-throughput systems. While Linux 5.3 introduced pidfd as a solution, Ruby lacks native support for this feature. I'll demonstrate how I bridged this gap using FFI, exploring syscall mappings, zombie process prevention, and practical process management patterns. Through live demonstrations, you'll learn how Linux pidfd APIs can help you eliminate race conditions and make your Ruby applications more reliable in modern environments.
Schedule

With 16+ years in Ruby, Maciej is a Software Architect, a key contributor to the Karafka ecosystem, and a member of the RubyGems security team. He specializes in building high-performance systems and improving OSS supply chain security. A passionate Rubyist and seasoned gem maintainer, Maciej is dedicated to advancing the Ruby ecosystem and sharing practical insights for creating robust and scalable applications.