diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-04-11 21:03:28 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-04-11 21:03:28 +0000 |
commit | cb5131e1df64c490ed29cd4246bffd8700ce4821 (patch) | |
tree | 2d07a2c7100472ce6050825a573e2c6d25395e91 /usr.sbin/usbd/usbd.c | |
parent | 6bf6c25391402cd8399f5e212ff83ea24e2c9c75 (diff) | |
download | FreeBSD-src-cb5131e1df64c490ed29cd4246bffd8700ce4821.zip FreeBSD-src-cb5131e1df64c490ed29cd4246bffd8700ce4821.tar.gz |
Syncing with NetBSD version 1998/12/14
Diffstat (limited to 'usr.sbin/usbd/usbd.c')
-rw-r--r-- | usr.sbin/usbd/usbd.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index bde1cc6..c1f9f0a 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -1,11 +1,12 @@ -/* $NetBSD: usbd.c,v 1.2 1998/07/23 18:39:53 augustss Exp $ */ -/* FreeBSD $Id$ */ +/* $NetBSD: usbd.c,v 1.4 1998/12/09 00:57:19 augustss Exp $ */ +/* $FreeBSD$ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * - * Author: Lennart Augustsson + * This code is derived from software contributed to The NetBSD Foundation + * by Lennart Augustsson (augustss@netbsd.org). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -72,7 +73,7 @@ usage(void) * driven explore to find it. Therefore we run an exploration * at regular intervals to catch those. */ -#define TIMEOUT 30 +#define TIMEOUT 300 int main(int argc, char **argv) @@ -160,15 +161,13 @@ main(int argc, char **argv) if (!debug) daemon(0, 0); - - - FD_ZERO(&fdset); for (;;) { + FD_ZERO(&fdset); for (i = 0; i < ndevs; i++) FD_SET(fds[i], &fdset); timo.tv_usec = 0; timo.tv_sec = itimo; - r = select(maxfd+1, &fdset, &fdset, 0, itimo ? &timo : 0); + r = select(maxfd+1, 0, &fdset, 0, itimo ? &timo : 0); if (r < 0) warn("select failed\n"); for (i = 0; i < ndevs; i++) |