diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-09-19 20:20:39 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-09-19 20:20:39 +0000 |
commit | 03df343ff545a44e75d1a1bb339b6264a9fb9d22 (patch) | |
tree | 5b918490cf14e4d4c9ae83260b4ff1d742d79cdc /usr.bin | |
parent | f819730a8322a9e5ef537677d7eb55496bc27593 (diff) |
Replace an exit(3) call in main() with a return to enable the stack
protector.
From Rafael Neves
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/renice/renice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c index 28f3df542ce..7d770eac6c3 100644 --- a/usr.bin/renice/renice.c +++ b/usr.bin/renice/renice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: renice.c,v 1.19 2015/10/22 07:52:29 deraadt Exp $ */ +/* $OpenBSD: renice.c,v 1.20 2016/09/19 20:20:38 bluhm Exp $ */ /* * Copyright (c) 2009, 2015 Todd C. Miller <Todd.Miller@courtesan.com> @@ -149,7 +149,7 @@ main(int argc, char **argv) } if (pri_type == RENICE_NONE) usage(); - exit(renice(params, p)); + return(renice(params, p)); } static int |