Exit() takes a negative value to indicate it was not called via signal.

This commit is contained in:
Todd C. Miller
2004-09-30 17:44:24 +00:00
parent abc7ac8eef
commit 1e65afba3d

View File

@@ -238,7 +238,7 @@ main(argc, argv)
if (!sp->modified)
(void) unlink(sp->tpath);
else
install_sudoers(sp); /* XXX rval */
(void) install_sudoers(sp);
}
exit(0);
@@ -902,7 +902,7 @@ Err(eval, fmt, va_alist)
#endif
vwarn(fmt, ap);
va_end(ap);
Exit(eval);
Exit(-eval);
}
/*
@@ -926,7 +926,7 @@ Errx(eval, fmt, va_alist)
#endif
vwarnx(fmt, ap);
va_end(ap);
Exit(eval);
Exit(-eval);
}
static void