docs: Add Markdown backticks around /dev/null in a few places

This improves the formatting of the documentation ever so slightly.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
This commit is contained in:
Philip Withnall 2018-02-08 16:39:32 +00:00
parent ca95aa7e12
commit 565d8fa1ee
2 changed files with 6 additions and 6 deletions

View File

@ -1816,12 +1816,12 @@ typedef enum /*< flags >*/ {
* spawned process that can be accessed with * spawned process that can be accessed with
* g_subprocess_get_stdout_pipe(). * g_subprocess_get_stdout_pipe().
* @G_SUBPROCESS_FLAGS_STDOUT_SILENCE: silence the stdout of the spawned * @G_SUBPROCESS_FLAGS_STDOUT_SILENCE: silence the stdout of the spawned
* process (ie: redirect to /dev/null). * process (ie: redirect to `/dev/null`).
* @G_SUBPROCESS_FLAGS_STDERR_PIPE: create a pipe for the stderr of the * @G_SUBPROCESS_FLAGS_STDERR_PIPE: create a pipe for the stderr of the
* spawned process that can be accessed with * spawned process that can be accessed with
* g_subprocess_get_stderr_pipe(). * g_subprocess_get_stderr_pipe().
* @G_SUBPROCESS_FLAGS_STDERR_SILENCE: silence the stderr of the spawned * @G_SUBPROCESS_FLAGS_STDERR_SILENCE: silence the stderr of the spawned
* process (ie: redirect to /dev/null). * process (ie: redirect to `/dev/null`).
* @G_SUBPROCESS_FLAGS_STDERR_MERGE: merge the stderr of the spawned * @G_SUBPROCESS_FLAGS_STDERR_MERGE: merge the stderr of the spawned
* process with whatever the stdout happens to be. This is a good way * process with whatever the stdout happens to be. This is a good way
* of directing both streams to a common log file, for example. * of directing both streams to a common log file, for example.
@ -1832,7 +1832,7 @@ typedef enum /*< flags >*/ {
* *
* Flags to define the behaviour of a #GSubprocess. * Flags to define the behaviour of a #GSubprocess.
* *
* Note that the default for stdin is to redirect from /dev/null. For * Note that the default for stdin is to redirect from `/dev/null`. For
* stdout and stderr the default are for them to inherit the * stdout and stderr the default are for them to inherit the
* corresponding descriptor from the calling process. * corresponding descriptor from the calling process.
* *

View File

@ -616,7 +616,7 @@ g_spawn_sync (const gchar *working_directory,
* standard error. If you use this flag, @standard_error must be %NULL. * standard error. If you use this flag, @standard_error must be %NULL.
* %G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's * %G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's
* standard input (by default, the child's standard input is attached to * standard input (by default, the child's standard input is attached to
* /dev/null). If you use this flag, @standard_input must be %NULL. * `/dev/null`). If you use this flag, @standard_input must be %NULL.
* %G_SPAWN_FILE_AND_ARGV_ZERO means that the first element of @argv is * %G_SPAWN_FILE_AND_ARGV_ZERO means that the first element of @argv is
* the file to execute, while the remaining elements are the actual * the file to execute, while the remaining elements are the actual
* argument vector to pass to the file. Normally g_spawn_async_with_pipes() * argument vector to pass to the file. Normally g_spawn_async_with_pipes()
@ -653,8 +653,8 @@ g_spawn_sync (const gchar *working_directory,
* when they are no longer in use. If these parameters are %NULL, the * when they are no longer in use. If these parameters are %NULL, the
* corresponding pipe won't be created. * corresponding pipe won't be created.
* *
* If @standard_input is NULL, the child's standard input is attached to * If @standard_input is %NULL, the child's standard input is attached to
* /dev/null unless %G_SPAWN_CHILD_INHERITS_STDIN is set. * `/dev/null` unless %G_SPAWN_CHILD_INHERITS_STDIN is set.
* *
* If @standard_error is NULL, the child's standard error goes to the same * If @standard_error is NULL, the child's standard error goes to the same
* location as the parent's standard error unless %G_SPAWN_STDERR_TO_DEV_NULL * location as the parent's standard error unless %G_SPAWN_STDERR_TO_DEV_NULL