utmp

simple login manager
git clone git://git.suckless.org/utmp
Log | Files | Refs | README | LICENSE

commit 462c252f861254ba1ce1c0334ccad28f0e4c08c7
parent 836feec54d58f145d34b14baee7cb0ff677cbd26
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:
Mutmp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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; }