Skip to content

richo/ruby-posix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fills some of the gaps in the stdlibrary

A small example of this is:

require 'posix'

mask = Posix::Sigset.new
mask << "INT"
mask << "USR2"

puts Posix.sigprocmask(Posix::SIG_SETMASK, mask)

Posix.execve("/bin/bash", ["/bin/bash"], {"rawr" => "Thing"})

The notable differences are:

  • The environment has becomes the child environmemt, instead of being merged into the current environment awkwardly.
  • sigprocmask is a thing you can actually call.
  • Posix.execve doesn't reset sigprocmask before exec'ing, unless Process#.spawn, Kernel#exec and friends.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages