Return the status of child as status of utmp - utmp - simple login manager  
 (HTM) git clone git://git.suckless.org/utmp
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 462c252f861254ba1ce1c0334ccad28f0e4c08c7
 (DIR) parent 836feec54d58f145d34b14baee7cb0ff677cbd26
 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Thu,  7 Aug 2014 15:44:14 +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.
       
       Diffstat:
         M utmp.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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;
        }