[DOC] Update description of Process.daemon
arguments
These arguments can only be `true` or `false` now. Also add markups.
This commit is contained in:
parent
547d2378ac
commit
8b390a456c
13
process.c
13
process.c
@ -6830,13 +6830,12 @@ static int rb_daemon(int nochdir, int noclose);
|
|||||||
* Process.daemon() -> 0
|
* Process.daemon() -> 0
|
||||||
* Process.daemon(nochdir=nil,noclose=nil) -> 0
|
* Process.daemon(nochdir=nil,noclose=nil) -> 0
|
||||||
*
|
*
|
||||||
* Detach the process from controlling terminal and run in
|
* Detach the process from controlling terminal and run in the
|
||||||
* the background as system daemon. Unless the argument
|
* background as system daemon. Unless the argument _nochdir_ is
|
||||||
* nochdir is true (i.e. non false), it changes the current
|
* +true+, it changes the current working directory to the root
|
||||||
* working directory to the root ("/"). Unless the argument
|
* ("/"). Unless the argument _noclose_ is +true+, daemon() will
|
||||||
* noclose is true, daemon() will redirect standard input,
|
* redirect standard input, standard output and standard error to
|
||||||
* standard output and standard error to null device.
|
* null device. Return zero on success, or raise one of Errno::*.
|
||||||
* Return zero on success, or raise one of Errno::*.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user