2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

cleanup() now takes an int as an arg so it can be used as a signal

handler too.
This commit is contained in:
Todd C. Miller
2005-11-18 01:39:59 +00:00
parent c7140895af
commit 2d282cd226
5 changed files with 24 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ __unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static void _warning __P((int, const char *, va_list));
void cleanup __P((void));
void cleanup __P((int));
void
#ifdef __STDC__
@@ -48,7 +48,7 @@ error(eval, fmt, va_alist)
#endif
_warning(1, fmt, ap);
va_end(ap);
cleanup();
cleanup(0);
exit(eval);
}
@@ -70,7 +70,7 @@ errorx(eval, fmt, va_alist)
#endif
_warning(0, fmt, ap);
va_end(ap);
cleanup();
cleanup(0);
exit(eval);
}