Updated the list of USB device IDs for uvscom(4).
[dragonfly.git] / sbin / dhclient / common / dispatch.c.patch
blob838e38528de86f38e3ae79971c4f2c5c5a9d1706
1 $DragonFly: src/sbin/dhclient/common/Attic/dispatch.c.patch,v 1.1 2005/01/04 19:58:54 joerg Exp $
2 --- dispatch.c.orig 2004-06-10 19:59:16.000000000 +0200
3 +++ dispatch.c 2004-06-24 17:09:15.000000000 +0200
4 @@ -86,11 +86,26 @@
5 void dispatch ()
7 struct timeval tv, *tvp;
8 +#ifdef ENABLE_POLLING_MODE
9 + struct timeval *tvp_new;
10 + TIME cur_time;
11 +#endif
12 isc_result_t status;
14 + tvp = NULL;
15 +#ifdef ENABLE_POLLING_MODE
16 + tvp_new = NULL;
17 +#endif
18 /* Wait for a packet or a timeout... XXX */
19 do {
20 tvp = process_outstanding_timeouts (&tv);
21 +#ifdef ENABLE_POLLING_MODE
22 + GET_TIME (&cur_time);
23 + add_timeout(cur_time + polling_interval, state_polling, 0, 0, 0);
24 + tvp_new = process_outstanding_timeouts(&tv);
25 + if (tvp != NULL && (tvp -> tv_sec > tvp_new -> tv_sec))
26 + tvp = tvp_new;
27 +#endif /* ENABLE_POLLING_MODE */
28 status = omapi_one_dispatch (0, tvp);
29 } while (status == ISC_R_TIMEDOUT || status == ISC_R_SUCCESS);
30 log_fatal ("omapi_one_dispatch failed: %s -- exiting.",