summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 52f7e11..8736a3c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -178,8 +178,7 @@ int main(int argc, char* argv[]) {
// Determine if I'm dead
if((now - lastlogin) > threshold) {
printf("You're dead!\n");
- exec_cmd(cmd);
- return 0;
+ return exec_cmd(cmd);
} else if((lastlogin - now) > SECONDS_IN_DAY) {
// Abort if last login is in the future.
fprintf(stderr,

Generated by cgit