summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-03-15 07:41:00 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-03-15 07:41:00 +0000
commitcf4a93fc85b3853d83e1487ab75ab71c823ce927 (patch)
treebf2b691821c79a6ce9156d5a7c92457546bab7b5 /server/main.c
parent5850535486d53a1ec78ef8ae77fbcc16e6b613bf (diff)
After each select() loop, re-initialize t_local for other uses.
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/main.c b/server/main.c
index a26d261..590793f 100644
--- a/server/main.c
+++ b/server/main.c
@@ -340,6 +340,10 @@ main(argc, argv)
} else
nfound = select(nfildes, &readable, (fd_set *) NULL,
(fd_set *) NULL, tvp);
+
+ /* Initialize t_local for other uses */
+ (void) gettimeofday(&t_local, (struct timezone *)0);
+
/* don't flame about EINTR, since a SIGUSR1 or SIGUSR2
can generate it by interrupting the select */
if (nfound < 0) {