lib/polyphony/adapters/process.rb
# Watches a forked or spawned process, waiting for it to terminate. If
# `cmd` is given it is spawned, otherwise the process is forked with the
# given block.
# 
# If the operation is interrupted for any reason, the spawned or forked
# process is killed.
#
# @param cmd [String, nil] command to spawn
# @param &block [Proc] block to fork
# @return [void]
Watches a forked or spawned process, waiting for it to terminate. If
`cmd` is given it is spawned, otherwise the process is forked with the
given block.

If the operation is interrupted for any reason, the spawned or forked
process is killed.
Watches a forked or spawned process waiting for it to terminate . If ` cmd ` is given it is spawned otherwise the process is forked with the given block . If the operation is interrupted for any reason the spawned or forked process is killed .
def kill_and_await(sig, pid)
        ::Process.kill(sig, pid)
        Polyphony.backend_waitpid(pid)
      rescue Errno::ESRCH
      end
def kill_and_await ( sig , pid ) :: Process . kill ( sig , pid ) Polyphony . backend_waitpid ( pid ) rescue Errno :: ESRCH end
Watches a forked or spawned process, waiting for it to terminate.
Watches a forked or spawned process waiting for it to terminate .
# process doesn't exist
None
void
sig
<not_specific>
pid
<not_specific>
cmd
<not_specific>
command to spawn
command to spawn
&block
<not_specific>
block to fork
block to fork