HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Kernel/trap-i.ri
U:RDoc::AnyMethod[iI"	trap:ETI"Kernel#trap;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"HSpecifies the handling of signals. The first parameter is a signal ;TI"Fname (a string such as ``SIGALRM'', ``SIGUSR1'', and so on) or a ;TI"Csignal number. The characters ``SIG'' may be omitted from the ;TI"Isignal name. The command or block specifies code to be run when the ;TI"signal is raised. ;TI"HIf the command is the string ``IGNORE'' or ``SIG_IGN'', the signal ;TI"will be ignored. ;TI"NIf the command is ``DEFAULT'' or ``SIG_DFL'', the Ruby's default handler ;TI"will be invoked. ;TI"NIf the command is ``EXIT'', the script will be terminated by the signal. ;TI"JIf the command is ``SYSTEM_DEFAULT'', the operating system's default ;TI"handler will be invoked. ;TI"8Otherwise, the given command or block will be run. ;TI"DThe special signal name ``EXIT'' or signal number zero will be ;TI"0invoked just prior to program termination. ;TI"<trap returns the previous handler for the given signal.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"8Signal.trap(0, proc { puts "Terminating: #{$$}" })
;TI"/Signal.trap("CLD")  { puts "Child died" }
;TI"fork && Process.wait
;T:@format0o;
;	[I"produces:;To;;	[I"Terminating: 27461
;TI"Child died
;TI"Terminating: 27460;T;
0:
@fileI"
signal.c;T:0@omit_headings_from_table_of_contents_below0I"USignal.trap( signal, command ) -> obj
Signal.trap( signal ) {| | block } -> obj
;T0[I"(*args);T@+FI"Kernel;TcRDoc::NormalModule00