Changeset 83
- Timestamp:
- 04/17/04 21:40:56 (9 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/auth.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r82 r83 1 1 # $Header$ 2 3 2004-04-17 Alexandre Carmel-Veilleux <acv@acv.ca> 4 * Added work around for uClibc bug in auth.c 2 5 3 6 2004-04-17 Philippe April <papril777@yahoo.com> -
trunk/wifidog/src/auth.c
r72 r83 37 37 cleanup_thread(void *ptr) 38 38 { 39 #ifndef __UCLIBC__ 39 40 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 40 41 pthread_mutex_t cond_mutex = PTHREAD_MUTEX_INITIALIZER; 41 42 struct timespec timeout; 42 43 #endif 44 43 45 while (1) { 46 /* Sleep for config.checkinterval seconds... */ 47 #ifndef __UCLIBC__ 48 /* Normal, thread safe */ 44 49 timeout.tv_sec = time(NULL) + config.checkinterval; 45 50 timeout.tv_nsec = 0; … … 47 52 /* Thread safe "sleep" */ 48 53 pthread_cond_timedwait(&cond, &cond_mutex, &timeout); 49 54 #else 55 /* uClibc appears to have major issues... */ 56 /* XXX Not compatible with anything but Linux 2.0 to 2.4 */ 57 sleep(config.checkinterval); 58 #endif 59 50 60 fw_counter(); 51 61 }
