forward.c (21786) | forward.c (29402) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Edward Sze-Tyan Wang. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 164 unchanged lines hidden (view full) --- 173 ierr(); 174 return; 175 } 176 (void)fflush(stdout); 177 if (!fflag) 178 break; 179 180 /* Sleep(3) is eight system calls. Do it fast. */ | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Edward Sze-Tyan Wang. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 164 unchanged lines hidden (view full) --- 173 ierr(); 174 return; 175 } 176 (void)fflush(stdout); 177 if (!fflag) 178 break; 179 180 /* Sleep(3) is eight system calls. Do it fast. */ |
181 second.tv_sec = 1; 182 second.tv_usec = 0; | 181 second.tv_sec = 0; 182 second.tv_usec = 250000; |
183 if (select(0, NULL, NULL, NULL, &second) == -1) 184 if (errno != EINTR) 185 err(1, "select"); 186 clearerr(fp); 187 } 188} 189 190/* --- 46 unchanged lines hidden --- | 183 if (select(0, NULL, NULL, NULL, &second) == -1) 184 if (errno != EINTR) 185 err(1, "select"); 186 clearerr(fp); 187 } 188} 189 190/* --- 46 unchanged lines hidden --- |