diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-28 17:16:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-28 17:16:06 +0000 |
commit | 9746d1703983f4a758038253b332196e423b6d2d (patch) | |
tree | 5a462ad86c6d0da27d4f3326ac2e3487247d4beb /gnu | |
parent | 4ba389467a778ed9562e3d53a1a67ec17977658f (diff) |
do not spin; hugh
Diffstat (limited to 'gnu')
-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; |