[前][次][番号順一覧][スレッド一覧]

ruby-changes:30692

From: knu <ko1@a...>
Date: Mon, 2 Sep 2013 14:42:09 +0900 (JST)
Subject: [ruby-changes:30692] knu:r42771 (trunk): Process#setproctitle, argv0: Fix and improve rdoc.

knu	2013-09-02 14:42:02 +0900 (Mon, 02 Sep 2013)

  New Revision: 42771

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42771

  Log:
    Process#setproctitle,argv0: Fix and improve rdoc.

  Modified files:
    trunk/ChangeLog
    trunk/ruby.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42770)
+++ ChangeLog	(revision 42771)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Sep  2 14:39:29 2013  Akinori MUSHA  <knu@i...>
+
+	* ruby.c (Process#setproctitle): Fix and improve rdoc.
+
+	* ruby.c (Process#argv0): Improve rdoc.
+
 Mon Sep  2 14:15:00 2013  Kenta Murata  <mrkn@c...>
 
 	* NEWS: fix description of number literal suffixes.
Index: ruby.c
===================================================================
--- ruby.c	(revision 42770)
+++ ruby.c	(revision 42771)
@@ -1787,6 +1787,9 @@ rb_load_file_str(VALUE fname_v) https://github.com/ruby/ruby/blob/trunk/ruby.c#L1787
  *
  *  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) https://github.com/ruby/ruby/blob/trunk/ruby.c#L1802
  *  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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]