commit 462c252f861254ba1ce1c0334ccad28f0e4c08c7
Author: Roberto E. Vargas Caballero <[email protected]>
Date:   Thu Aug 7 15:44:14 2014 +0200

    Return the status of child as status of utmp
    
    It makes possible to can know what was the the exit status of the
    command passed to utmp.

diff --git a/utmp.c b/utmp.c
index d0d556c..6e213ef 100644
--- a/utmp.c
+++ b/utmp.c
@@ -78,5 +78,5 @@ main(int argc, char *argv[])
                        perror("error waiting child");
                delutmp();
        }
-       return 0;
+       return (WIFEXITED(status)) ? WEXITSTATUS(status) : EXIT_FAILURE;
 }


Reply via email to