Skip to content

Commit a17a1cd

Browse files
[DOC] Fix for RDoc for Process.kill (#8370)
1 parent 88b2529 commit a17a1cd

File tree

1 file changed

+8
-38
lines changed

1 file changed

+8
-38
lines changed

process.c

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8682,53 +8682,23 @@ get_PROCESS_ID(ID _x, VALUE *_y)
86828682
* with prefixed <tt>'-'</tt>,
86838683
* each process group with group ID +id+ is signalled.
86848684
*
8685-
* The actual signal values are platform dependent, an example of
8686-
* signal names which are supported on many platforms are:
8687-
*
8688-
* - +SIGHUP+: Hang up controlling terminal or process.
8689-
* - +SIGINT+: \Interrupt from keyboard, Ctrl-C by default in general.
8690-
* - +SIGQUIT+: Quit from keyboard, Ctrl-\ by default in general.
8691-
* - +SIGILL+: Illegal instruction.
8692-
* - +SIGTRAP+: Breakpoint for debugging.
8693-
* - +SIGIOT+: Abnormal termination.
8694-
* - +SIGBUS+: Bus error.
8695-
* - +SIGFPE+: Floating-point exception.
8696-
* - +SIGKILL+: Forced-process termination.
8697-
* - +SIGUSR1+: Available to processes.
8698-
* - +SIGSEGV+: Invalid memory reference.
8699-
* - +SIGUSR2+: Available to processes.
8700-
* - +SIGPIPE+: Write to pipe with no readers.
8701-
* - +SIGALRM+: Real-timer clock.
8702-
* - +SIGTERM+: \Process termination.
8703-
* - +SIGCHLD+: Child process stopped or terminated or got a signal if traced.
8704-
* - +SIGCONT+: Resume execution, if stopped.
8705-
* - +SIGSTOP+: Stop process execution, Ctrl-Z by default in general.
8706-
* - +SIGTSTP+: Stop process issued from tty.
8707-
* - +SIGTTIN+: Background process requires input.
8708-
* - +SIGTTOU+: Background process requires output.
8709-
* - +SIGURG+: Urgent condition on socket.
8710-
* - +SIGXCPU+: CPU time limit exceeded.
8711-
* - +SIGXFSZ+: File size limit exceeded.
8712-
* - +SIGVTALRM+: Virtual timer clock.
8713-
* - +SIGPROF+: Profile timer clock.
8714-
* - +SIGWINCH+: Window resizing.
8715-
* - +SIGPOLL+: I/O now possible.
8716-
* - +SIGPWR+: Power supply failure.
8717-
* - +SIGSYS+, +SIGUNUSED+: Bad system call.
8718-
*
8719-
* Use Signal.list to see which signals are supported, and the actual
8720-
* values.
8685+
* Use method Signal.list to see which signals are supported
8686+
* by Ruby on the underlying platform;
8687+
* the method returns a hash of the string names
8688+
* and non-negative integer values of the supported signals.
8689+
* The size and content of the returned hash varies widely
8690+
* among platforms.
87218691
*
87228692
* Additionally, signal +0+ is useful to determine if the process exists.
87238693
*
87248694
* Example:
87258695
*
87268696
* pid = fork do
8727-
* Signal.trap("HUP") { puts "Ouch!"; exit }
8697+
* Signal.trap('HUP') { puts 'Ouch!'; exit }
87288698
* # ... do some work ...
87298699
* end
87308700
* # ...
8731-
* Process.kill("HUP", pid)
8701+
* Process.kill('HUP', pid)
87328702
* Process.wait
87338703
*
87348704
* Output:

0 commit comments

Comments
 (0)