[glib/wip/pwithnall/2216-pidfd-sigchld: 373/374] gmain: Add a clarifying comment about exit statuses vs wait statuses
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib/wip/pwithnall/2216-pidfd-sigchld: 373/374] gmain: Add a clarifying comment about exit statuses vs wait statuses
- Date: Thu,  7 Jul 2022 12:05:28 +0000 (UTC)
commit 7b93693ab3007670a3d95d6ac3cb9260c5643493
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Dec 23 17:43:02 2021 +0000
    gmain: Add a clarifying comment about exit statuses vs wait statuses
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #2216
 glib/gmain.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index a0ade8acbb..e2b091ffd2 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -352,6 +352,8 @@ struct _GChildWatchSource
 {
   GSource     source;
   GPid        pid;
+  /* On Unix this is a wait status, which is the thing you pass to WEXITSTATUS()
+   * to get the status returned from the process’ main() or passed to exit(): */
   gint        child_status;
 #ifdef G_OS_WIN32
   GPollFD     poll;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]