artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c84f8
)
Don't return errno from main()
author
guenther
<guenther@openbsd.org>
Sun, 11 Oct 2015 20:17:49 +0000
(20:17 +0000)
committer
guenther
<guenther@openbsd.org>
Sun, 11 Oct 2015 20:17:49 +0000
(20:17 +0000)
ok beck@ doug@ deraadt@ tedu@
bin/sleep/sleep.c
patch
|
blob
|
history
diff --git
a/bin/sleep/sleep.c
b/bin/sleep/sleep.c
index
fe49ccf
..
d25ad44
100644
(file)
--- a/
bin/sleep/sleep.c
+++ b/
bin/sleep/sleep.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sleep.c,v 1.2
3 2015/10/09 01:37:06 deraadt Exp $
*/
+/* $OpenBSD: sleep.c,v 1.2
4 2015/10/11 20:17:49 guenther Exp $
*/
/* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */
/*
@@
-107,7
+107,7
@@
main(int argc, char *argv[])
if ((secs > 0) || (nsecs > 0))
if (nanosleep(&rqtp, NULL))
-
return (errno
);
+
err(1, NULL
);
return (0);
}