module POSIX::Spawn

def pspawn(*args)

loaded due to lack of platform support.
Raises NotImplementedError when the posix_spawn_ext module could not be

the POSIX::Spawn module documentation.
systems interfaces. Supports the standard spawn interface as described in
Spawn a child process with a variety of options using the posix_spawn(2)
def pspawn(*args)
  env, argv, options = extract_process_spawn_arguments(*args)
  raise NotImplementedError unless respond_to?(:_pspawn)
  if defined? JRUBY_VERSION
    # On the JVM, changes made to the environment are not propagated down
    # to C via get/setenv, so we have to fake it here.
    unless options[:unsetenv_others] == true
      env = ENV.merge(env)
      options[:unsetenv_others] = true
    end
  end
  _pspawn(env, argv, options)
end