[glib/glib-2-72: 34/39] gmain: Add a clarifying comment about exit statuses vs wait statuses




commit ad7617a528dc93ec795cf2ccacbbb2336e6a4319
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
    
    (cherry-picked from commit 7b93693ab3007670a3d95d6ac3cb9260c5643493)

 glib/gmain.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index 94aa1152a6..f33f55fd10 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -342,6 +342,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]