From e0bdecd84aaeef731c9a77b4b2a8cc8aa4516b52 Mon Sep 17 00:00:00 2001 From: lukem Date: Mon, 20 Oct 1997 00:37:14 +0000 Subject: FD_ZERO select mask before FD_SET-ing it --- hunt/huntd/driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hunt/huntd/driver.c') diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c index a6f7cf67..4b06af91 100644 --- a/hunt/huntd/driver.c +++ b/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $NetBSD: driver.c,v 1.4 1997/10/15 12:02:08 mrg Exp $ */ +/* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,7 +7,7 @@ #include #ifndef lint -__RCSID("$NetBSD: driver.c,v 1.4 1997/10/15 12:02:08 mrg Exp $"); +__RCSID("$NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $"); #endif /* not lint */ # include @@ -367,6 +367,7 @@ init() /* * Initialize minimal select mask */ + FD_ZERO(&Fds_mask); FD_SET(Socket, &Fds_mask); FD_SET(Status, &Fds_mask); Num_fds = ((Socket > Status) ? Socket : Status) + 1; -- cgit v1.2.3