From 5ecb59ef0bd471e191bd419fdc21bb7831a97d44 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 6 Feb 1997 22:24:35 +0000 Subject: [PATCH] Update to the new open() semantics, need O_NONBLOCK now. --- usr.sbin/wormcontrol/wormcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/wormcontrol/wormcontrol.c b/usr.sbin/wormcontrol/wormcontrol.c index aab8320df23..e28a00a2b51 100644 --- a/usr.sbin/wormcontrol/wormcontrol.c +++ b/usr.sbin/wormcontrol/wormcontrol.c @@ -86,7 +86,7 @@ main(int argc, char **argv) if (errs || argc < 1) usage(); - if ((fd = open(devname, O_RDONLY, 0)) == -1) + if ((fd = open(devname, O_RDONLY | O_NONBLOCK, 0)) == -1) err(EX_NOINPUT, "open(%s)", devname); if (eq(argv[0], "select")) {