[glib/wip/pwithnall/2216-pidfd-sigchld: 947/948] gmain: Add a clarifying comment about exit statuses vs wait statuses




commit 7e099d3bdd96de89321b30944b48007ebf0125d9
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 74568b8a90..dc8b65ad40 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -344,6 +344,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]