@@ -6931,15 +6931,22 @@ static int rb_daemon(int nochdir, int noclose);
6931
6931
6932
6932
/*
6933
6933
* call-seq:
6934
- * Process.daemon() -> 0
6935
- * Process.daemon(nochdir=nil,noclose=nil) -> 0
6936
- *
6937
- * Detach the process from controlling terminal and run in the
6938
- * background as system daemon. Unless the argument _nochdir_ is
6939
- * +true+, it changes the current working directory to the root
6940
- * ("/"). Unless the argument _noclose_ is +true+, daemon() will
6941
- * redirect standard input, standard output and standard error to
6942
- * null device. Return zero on success, or raise one of Errno::*.
6934
+ * Process.daemon(nochdir = nil, noclose = nil) -> 0
6935
+ *
6936
+ * Detaches the current process from its controlling terminal
6937
+ * and runs it in the background as system daemon;
6938
+ * returns zero.
6939
+ *
6940
+ * By default:
6941
+ *
6942
+ * - Changes the current working directory to the root directory.
6943
+ * - Redirects $stdin, $stdout, and $stderr to the null device.
6944
+ *
6945
+ * If optional argument +nochdir+ is +true+,
6946
+ * does not change the current working directory.
6947
+ *
6948
+ * If optional argument +noclose+ is +true+,
6949
+ * does not redirect $stdin, $stdout, or $stderr.
6943
6950
*/
6944
6951
6945
6952
static VALUE
@@ -7196,13 +7203,14 @@ p_gid_change_privilege(VALUE obj, VALUE id)
7196
7203
7197
7204
/*
7198
7205
* call-seq:
7199
- * Process.euid -> integer
7200
- * Process::UID.eid -> integer
7201
- * Process::Sys.geteuid -> integer
7206
+ * Process.euid -> integer
7207
+ * Process::UID.eid -> integer
7208
+ * Process::Sys.geteuid -> integer
7209
+ *
7210
+ * Returns the effective user ID for the current process.
7202
7211
*
7203
- * Returns the effective user ID for this process.
7212
+ * Process.euid # => 501
7204
7213
*
7205
- * Process.euid #=> 501
7206
7214
*/
7207
7215
7208
7216
static VALUE
@@ -7238,10 +7246,11 @@ proc_seteuid(rb_uid_t uid)
7238
7246
#if defined(HAVE_SETRESUID ) || defined(HAVE_SETREUID ) || defined(HAVE_SETEUID ) || defined(HAVE_SETUID )
7239
7247
/*
7240
7248
* call-seq:
7241
- * Process.euid= user
7249
+ * Process.euid = new_euid -> new_euid
7250
+ *
7251
+ * Sets the effective user ID for the current process.
7242
7252
*
7243
- * Sets the effective user ID for this process. Not available on all
7244
- * platforms.
7253
+ * Not available on all platforms.
7245
7254
*/
7246
7255
7247
7256
static VALUE
@@ -7319,14 +7328,15 @@ p_uid_grant_privilege(VALUE obj, VALUE id)
7319
7328
7320
7329
/*
7321
7330
* call-seq:
7322
- * Process.egid -> integer
7323
- * Process::GID.eid -> integer
7324
- * Process::Sys.geteid -> integer
7331
+ * Process.egid -> integer
7332
+ * Process::GID.eid -> integer
7333
+ * Process::Sys.geteid -> integer
7334
+ *
7335
+ * Returns the effective group ID for the current process:
7325
7336
*
7326
- * Returns the effective group ID for this process. Not available on
7327
- * all platforms.
7337
+ * Process.egid # => 500
7328
7338
*
7329
- * Process.egid #=> 500
7339
+ * Not available on all platforms.
7330
7340
*/
7331
7341
7332
7342
static VALUE
@@ -7340,10 +7350,11 @@ proc_getegid(VALUE obj)
7340
7350
#if defined(HAVE_SETRESGID ) || defined(HAVE_SETREGID ) || defined(HAVE_SETEGID ) || defined(HAVE_SETGID ) || defined(_POSIX_SAVED_IDS )
7341
7351
/*
7342
7352
* call-seq:
7343
- * Process.egid = integer -> integer
7353
+ * Process.egid = new_egid -> new_egid
7344
7354
*
7345
- * Sets the effective group ID for this process. Not available on all
7346
- * platforms.
7355
+ * Sets the effective group ID for the current process.
7356
+ *
7357
+ * Not available on all platforms.
7347
7358
*/
7348
7359
7349
7360
static VALUE
@@ -7816,14 +7827,14 @@ get_clk_tck(void)
7816
7827
7817
7828
/*
7818
7829
* call-seq:
7819
- * Process.times -> aProcessTms
7830
+ * Process.times -> process_tms
7831
+ *
7832
+ * Returns a Process::Tms structure that contains user and system CPU times
7833
+ * for the current process, and for its children processes:
7820
7834
*
7821
- * Returns a <code>Tms</code> structure (see Process::Tms)
7822
- * that contains user and system CPU times for this process,
7823
- * and also for children processes.
7835
+ * Process.times
7836
+ * # => #<struct Process::Tms utime=55.122118, stime=35.533068, cutime=0.0, cstime=0.002846>
7824
7837
*
7825
- * t = Process.times
7826
- * [ t.utime, t.stime, t.cutime, t.cstime ] #=> [0.0, 0.02, 0.00, 0.00]
7827
7838
*/
7828
7839
7829
7840
VALUE
0 commit comments