diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-04 14:59:51 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-04 14:59:51 +0000 |
commit | 6b10c48d5b91c11eddd20e93cec4bea00792b84b (patch) | |
tree | c823043f6afecfd05fd28435619e5fc2d05322af /sbin/savecore/savecore.c | |
parent | def0a55bccd5d217c525df2164ff92a51088f7db (diff) |
return from main() don't exit
Diffstat (limited to 'sbin/savecore/savecore.c')
-rw-r--r-- | sbin/savecore/savecore.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index afacf6d09ca..1d4bbbee677 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savecore.c,v 1.23 2001/01/18 00:18:38 deraadt Exp $ */ +/* $OpenBSD: savecore.c,v 1.24 2001/06/04 14:59:49 mickey Exp $ */ /* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: savecore.c,v 1.23 2001/01/18 00:18:38 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: savecore.c,v 1.24 2001/06/04 14:59:49 mickey Exp $"; #endif #endif /* not lint */ @@ -195,11 +195,11 @@ main(argc, argv) if (clear) { clear_dump(); - exit(0); + return (0); } if (!dump_exists() && !force) - exit(1); + return (1); check_kmem(); @@ -209,12 +209,12 @@ main(argc, argv) syslog(LOG_ALERT, "reboot"); if ((!get_crashtime() || !check_space()) && !force) - exit(1); + return (1); save_core(); clear_dump(); - exit(0); + return (0); } char *dump_sys; |