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




commit bf374531b1b79dde5b710a05a7428af0da16c1ec
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 068184866..cb94a2551 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -338,6 +338,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]