[DOC] Update description of `Process.daemon` arguments

These arguments can only be `true` or `false` now.  Also add markups.
This commit is contained in:
Nobuyoshi Nakada 2023-07-31 23:24:45 +09:00
Родитель 547d2378ac
Коммит 8b390a456c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3582D74E1FEE4465
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -6830,13 +6830,12 @@ static int rb_daemon(int nochdir, int noclose);
* Process.daemon() -> 0
* Process.daemon(nochdir=nil,noclose=nil) -> 0
*
* Detach the process from controlling terminal and run in
* the background as system daemon. Unless the argument
* nochdir is true (i.e. non false), it changes the current
* working directory to the root ("/"). Unless the argument
* noclose is true, daemon() will redirect standard input,
* standard output and standard error to null device.
* Return zero on success, or raise one of Errno::*.
* Detach the process from controlling terminal and run in the
* background as system daemon. Unless the argument _nochdir_ is
* +true+, it changes the current working directory to the root
* ("/"). Unless the argument _noclose_ is +true+, daemon() will
* redirect standard input, standard output and standard error to
* null device. Return zero on success, or raise one of Errno::*.
*/
static VALUE