[glib/wip/wait-status] Apply 4 suggestion(s) to 2 file(s)



commit 20340be5441e33001b326b94d499df9ae3280056
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jun 15 13:31:14 2021 +0000

    Apply 4 suggestion(s) to 2 file(s)

 glib/gmain.h  | 2 +-
 glib/gspawn.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glib/gmain.h b/glib/gmain.h
index b8107c0fc..8428e01a4 100644
--- a/glib/gmain.h
+++ b/glib/gmain.h
@@ -203,7 +203,7 @@ typedef gboolean (*GSourceFunc)       (gpointer user_data);
  * To interpret @wait_status, see the documentation
  * for g_spawn_check_wait_status(). In particular,
  * on Unix platforms, note that it is usually not equal
- * to the integer passed to `exit` or returned from `main`.
+ * to the integer passed to `exit()` or returned from `main()`.
  */
 typedef void     (*GChildWatchFunc)   (GPid     pid,
                                        gint     wait_status,
diff --git a/glib/gspawn.c b/glib/gspawn.c
index 82ae46dae..f8d7d2bc0 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -338,7 +338,7 @@ read_data (GString *str,
  * the child is stored there; see the documentation of
  * g_spawn_check_wait_status() for how to use and interpret this.
  * On Unix platforms, note that it is usually not equal
- * to the integer passed to `exit` or returned from `main`.
+ * to the integer passed to `exit()` or returned from `main()`.
  *
  * Note that it is invalid to pass %G_SPAWN_DO_NOT_REAP_CHILD in
  * @flags, and on POSIX platforms, the same restrictions as for
@@ -998,7 +998,7 @@ g_spawn_async_with_fds (const gchar          *working_directory,
  * the child is stored there; see the documentation of
  * g_spawn_check_wait_status() for how to use and interpret this.
  * On Unix platforms, note that it is usually not equal
- * to the integer passed to `exit` or returned from `main`.
+ * to the integer passed to `exit()` or returned from `main()`.
  * 
  * On Windows, please note the implications of g_shell_parse_argv()
  * parsing @command_line. Parsing is done according to Unix shell rules, not 
@@ -1199,7 +1199,7 @@ g_spawn_check_wait_status (gint      wait_status,
  *
  * Since: 2.34
  *
- * Deprecated: 2.70
+ * Deprecated: 2.70: Use g_spawn_check_wait_status() instead and check whether your code is conflating wait 
and exit statuses.
  */
 gboolean
 g_spawn_check_exit_status (gint      wait_status,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]