Skip to content

Commit 8b390a4

Browse files
committed
[DOC] Update description of Process.daemon arguments
These arguments can only be `true` or `false` now. Also add markups.
1 parent 547d237 commit 8b390a4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

process.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6830,13 +6830,12 @@ static int rb_daemon(int nochdir, int noclose);
68306830
* Process.daemon() -> 0
68316831
* Process.daemon(nochdir=nil,noclose=nil) -> 0
68326832
*
6833-
* Detach the process from controlling terminal and run in
6834-
* the background as system daemon. Unless the argument
6835-
* nochdir is true (i.e. non false), it changes the current
6836-
* working directory to the root ("/"). Unless the argument
6837-
* noclose is true, daemon() will redirect standard input,
6838-
* standard output and standard error to null device.
6839-
* Return zero on success, or raise one of Errno::*.
6833+
* Detach the process from controlling terminal and run in the
6834+
* background as system daemon. Unless the argument _nochdir_ is
6835+
* +true+, it changes the current working directory to the root
6836+
* ("/"). Unless the argument _noclose_ is +true+, daemon() will
6837+
* redirect standard input, standard output and standard error to
6838+
* null device. Return zero on success, or raise one of Errno::*.
68406839
*/
68416840

68426841
static VALUE

0 commit comments

Comments
 (0)