devel/ruby-posix-spawn 0.3.15 NetBSD
Ruby wrapper for the posix_spawn() system call
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, ruby
- Package size
- 68.1 KiB, 194.8 KiB installed
Description
fork(2) calls slow down as the parent process uses more memory due to the need to copy page tables. In many common uses of fork(), where it is followed by one of the exec family of functions to spawn child processes (Kernel#system, IO::popen, Process::spawn, etc.), it's possible to remove this overhead by using the use of special process spawning interfaces (posix_spawn(), vfork(), etc.)
The posix-spawn library aims to implement a subset of the Ruby 1.9 Process::spawn interface in a way that takes advantage of fast process spawning interfaces when available and provides sane fallbacks on systems that do not.
Install
Binary package:
pkgin install ruby33-posix-spawn
From pkgsrc:
cd /usr/pkgsrc/devel/ruby-posix-spawn && make install clean
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-posix-spawn-0.3.15,ruby40-posix-spawn-0.3.15