PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Kernel
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Specifies the handling of signals. The first parameter is a signal name (a string such as ``SIGALRM'', ``SIGUSR1'', and so on) or a signal number. The characters ``SIG'' may be omitted from the signal name. The command or block specifies code to be run when the signal is raised. If the command is the string ``IGNORE'' or ``SIG_IGN'', the signal will be ignored. If the command is ``DEFAULT'' or ``SIG_DFL'', the operating system's default handler will be invoked. If the command is ``EXIT'', the script will be terminated by the signal. Otherwise, the given command or block will be run. The special signal name ``EXIT'' or signal number zero will be invoked just prior to program termination. trap returns the previous handler for the given signal. - !ruby/struct:SM::Flow::VERB body: " Signal.trap(0, proc { puts "Terminating: #{$$}" })\n Signal.trap("CLD") { puts "Child died" }\n fork && Process.wait\n" - !ruby/struct:SM::Flow::P body: "produces:" - !ruby/struct:SM::Flow::VERB body: " Terminating: 27461\n Child died\n Terminating: 27460\n" full_name: Kernel#trap is_singleton: false name: trap params: | Signal.trap( signal, proc ) => obj Signal.trap( signal ) {| | block } => obj visibility: public
[-] trap-i.yaml
[edit]
[-] chop-i.yaml
[edit]
[-] URI-i.yaml
[edit]
[-] gsub%21-i.yaml
[edit]
[-] fail-i.yaml
[edit]
[-] lambda-i.yaml
[edit]
[-] fork-i.yaml
[edit]
[-] autoload-i.yaml
[edit]
[-] abort-i.yaml
[edit]
[-] readlines-i.yaml
[edit]
[-] exec-i.yaml
[edit]
[-] __method__-i.yaml
[edit]
[-] readline-i.yaml
[edit]
[-] Integer-i.yaml
[edit]
[-] eval-i.yaml
[edit]
[-] open_uri_original_open-i.yaml
[edit]
[-] autoload%3f-i.yaml
[edit]
[-] scan-i.yaml
[edit]
[-] at_exit-i.yaml
[edit]
[-] p-i.yaml
[edit]
[-] y-i.yaml
[edit]
[-] syscall-i.yaml
[edit]
[-] sub%21-i.yaml
[edit]
[-] warn-i.yaml
[edit]
[-] caller-i.yaml
[edit]
[-] print-i.yaml
[edit]
[-] Float-i.yaml
[edit]
[-] scanf-i.yaml
[edit]
[-] open-i.yaml
[edit]
[-] split-i.yaml
[edit]
[-] sub-i.yaml
[edit]
[-] catch-i.yaml
[edit]
[-] raise-i.yaml
[edit]
[-] gsub-i.yaml
[edit]
[-] sprintf-i.yaml
[edit]
[-] iterator%3f-i.yaml
[edit]
[-] binding-i.yaml
[edit]
[-] putc-i.yaml
[edit]
[-] pp-i.yaml
[edit]
[-] pretty_inspect-i.yaml
[edit]
[-] getc-i.yaml
[edit]
[-] %60-i.yaml
[edit]
[-] chomp-i.yaml
[edit]
[-] load-i.yaml
[edit]
[-] exit-i.yaml
[edit]
[-] srand-i.yaml
[edit]
[-] block_given%3f-i.yaml
[edit]
[-] trace_var-i.yaml
[edit]
[-] callcc-i.yaml
[edit]
[-] Array-i.yaml
[edit]
[-] test-i.yaml
[edit]
[-] loop-i.yaml
[edit]
[-] format-i.yaml
[edit]
[-] gets-i.yaml
[edit]
[-] method_missing-i.yaml
[edit]
[-] chop%21-i.yaml
[edit]
[-] proc-i.yaml
[edit]
[-] throw-i.yaml
[edit]
[-] exit%21-i.yaml
[edit]
[-] global_variables-i.yaml
[edit]
[-] printf-i.yaml
[edit]
[+]
..
[-] require-i.yaml
[edit]
[-] String-i.yaml
[edit]
[-] select-i.yaml
[edit]
[-] set_trace_func-i.yaml
[edit]
[-] chomp%21-i.yaml
[edit]
[-] sleep-i.yaml
[edit]
[-] Pathname-i.yaml
[edit]
[-] untrace_var-i.yaml
[edit]
[-] rand-i.yaml
[edit]
[-] cdesc-Kernel.yaml
[edit]
[-] system-i.yaml
[edit]
[-] local_variables-i.yaml
[edit]
[-] puts-i.yaml
[edit]