mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Process#setproctitle,argv0: Fix and improve rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
01983c97a9
commit
1b4addb445
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Sep 2 14:39:29 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ruby.c (Process#setproctitle): Fix and improve rdoc.
|
||||
|
||||
* ruby.c (Process#argv0): Improve rdoc.
|
||||
|
||||
Mon Sep 2 14:15:00 2013 Kenta Murata <mrkn@cookpad.com>
|
||||
|
||||
* NEWS: fix description of number literal suffixes.
|
||||
|
|
12
ruby.c
12
ruby.c
|
@ -1787,6 +1787,9 @@ rb_load_file_str(VALUE fname_v)
|
|||
*
|
||||
* Returns the name of the script being executed. The value is not
|
||||
* affected by assigning a new value to $0.
|
||||
*
|
||||
* This method first appeared in Ruby 2.1 to serve as a global
|
||||
* variable free means to get the script name.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
@ -1799,12 +1802,17 @@ proc_argv0(VALUE process)
|
|||
* call-seq:
|
||||
* Process.setproctitle(string) -> string
|
||||
*
|
||||
* Returns the process title that appears on the ps(1) command. Not
|
||||
* necessarily effective on all platforms.
|
||||
* Sets the process title that appears on the ps(1) command. Not
|
||||
* necessarily effective on all platforms. No exception will be
|
||||
* raised regardless of the result, nor will NotImplementedError be
|
||||
* raised even if the platform does not support the feature.
|
||||
*
|
||||
* Calling this method does not affect the value of $0.
|
||||
*
|
||||
* Process.setproctitle('myapp: worker #%d' % worker_id)
|
||||
*
|
||||
* This method first appeared in Ruby 2.1 to serve as a global
|
||||
* variable free means to change the process title.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue