clock: Read fd to avoid 100% cpu usage
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Jun 2012 20:54:52 +0000 (16:54 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Jun 2012 20:54:52 +0000 (16:54 -0400)
commit70226bbda669b0542b222fd42de963eefddc9a7a
treef0356e9da974ffe95daeb88a31c11b8acc76ef9a
parentfc9c5e04fd0393bcfa1dbf349cb38e52f2c42728
clock: Read fd to avoid 100% cpu usage

In clock_func() it is necessary to read the timer fd, or
it will stay readable, and the event loop will call the function again.
That causes an endless loop.
clients/desktop-shell.c