]> git.tuebingen.mpg.de Git - dss.git/commit - dss.c
Fix select timeout.
authorroot <root@braid.x>
Thu, 17 Apr 2008 15:58:20 +0000 (17:58 +0200)
committerroot <root@braid.x>
Thu, 17 Apr 2008 15:58:20 +0000 (17:58 +0200)
commita05d84006712ac65c611d494b2b1f1d3bcb27207
treee83b30ce3e5a2c56bf4252c04da35ee601da8f68
parent73b1e1c9b290c8d462cc4e7aeb16381711e07a4c
Fix select timeout.

Under Linux, select() modifies the timeval pointed to by the last
parameter; it contains the time that was not slept because an fd
in one of the given fd sets became ready.

It is hence necessary to reset the time to be slept in each iteration
off dss' select loop.
dss.c