It makes possible to can know what was the the exit status of the command passed to utmp. --- utmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utmp.c b/utmp.c
index 53429a8..de0064d 100644
--- a/utmp.c
+++ b/utmp.c
@@ -80,5 +80,5 @@ main(int argc, char *argv[])
perror("error waiting child");
delutmp();
}
- return 0;
+ return (WIFEXITED(status)) ? WEXITSTATUS(status) : EXIT_FAILURE;
}
--
1.9.3
