REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.36 KB
Close
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Signal/trap-c.yaml
Text
Base64
--- !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: Signal::trap is_singleton: true name: trap params: | Signal.trap( signal, proc ) => obj Signal.trap( signal ) {| | block } => obj visibility: public
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cdesc-Signal.yaml
1.51 KB
lrw-r--r--
2023-07-26 13:47:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
list-c.yaml
1.14 KB
lrw-r--r--
2023-07-26 13:47:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
trap-c.yaml
1.36 KB
lrw-r--r--
2023-07-26 13:47:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).