diff options
-rw-r--r-- | gnu/usr.bin/bc/bcwrap/wrap-anything.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/bc/bcwrap/wrap-anything.c b/gnu/usr.bin/bc/bcwrap/wrap-anything.c index e2469838a0b..04421f3046d 100644 --- a/gnu/usr.bin/bc/bcwrap/wrap-anything.c +++ b/gnu/usr.bin/bc/bcwrap/wrap-anything.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wrap-anything.c,v 1.1 1999/07/15 19:23:23 deraadt Exp $ */ +/* $OpenBSD: wrap-anything.c,v 1.2 1999/07/28 17:16:05 deraadt Exp $ */ /* * Copyright (c) 1996 Theo de Raadt <deraadt@theos.com> @@ -98,7 +98,7 @@ main(argc, argv) if (waitpid(pid, &stat, WNOHANG) > 0) exit(WEXITSTATUS(stat)); - switch (poll(pfd, 2, 0)) { + switch (poll(pfd, 2, -1)) { case -1: case 0: break; |