artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4451981
)
be more careful with select
author
deraadt
<deraadt@openbsd.org>
Mon, 16 Dec 1996 15:57:16 +0000
(15:57 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 16 Dec 1996 15:57:16 +0000
(15:57 +0000)
gnu/usr.bin/bc/bcwrap/bcwrap.c
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/bc/bcwrap/bcwrap.c
b/gnu/usr.bin/bc/bcwrap/bcwrap.c
index
3dc2361
..
e07f3a6
100644
(file)
--- a/
gnu/usr.bin/bc/bcwrap/bcwrap.c
+++ b/
gnu/usr.bin/bc/bcwrap/bcwrap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bcwrap.c,v 1.
3 1996/08/24 20:41:3
6 deraadt Exp $ */
+/* $OpenBSD: bcwrap.c,v 1.
4 1996/12/16 15:57:1
6 deraadt Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@
-85,10
+85,10
@@
main(argc, argv)
}
width = pd[1];
- rfds = (1 << 0) || (1 << pd[1]);
while (1) {
if (waitpid(pid, &stat, WNOHANG) > 0)
exit(WEXITSTATUS(stat));
+ rfds = (1 << 0) || (1 << pd[1]);
switch (select(width, (fd_set *)&rfds, NULL, NULL, NULL)) {
case -1:
case 0: