The following patches to XTrap v3.3 fixes a bug where sleeps of less than a second were being rounded down to no sleep at all. Please feel free to redistribute them as widely and freely as any contributed X software. --Robert Chesler rob@chesler.nashua.nh.us *** extensions/lib/xtrap/sleep.c.bug Mon Sep 14 16:44:07 1992 --- extensions/lib/xtrap/sleep.c Fri Feb 26 20:25:26 1993 *************** *** 43,50 **** --- 43,55 ---- # ifndef vms { struct timeval itm; + #ifndef NDEF /* XTrap v3.3 had a bug here */ itm.tv_sec = usecs / 1000000L; + itm.tv_usec = usecs % 1000000L; + #else /* NDEF */ + itm.tv_sec = usecs / 1000000L; itm.tv_usec = 1000000L * (usecs % 1000000L); + #endif /* NDEF */ select(0L,0L,0L,0L,&itm); return; }