gui: Don't sleep before executing the status command.
authorAndre Noll <maan@systemlinux.org>
Wed, 27 Mar 2013 20:49:40 +0000 (20:49 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 2 May 2013 17:56:09 +0000 (19:56 +0200)
commit14e6890c756529c73a95cf1fb3648a6a7c3344d7
treef4fee921c09940513dbbd8c865ab2c2dfb0989cc
parente90c6c0a4d28a3f39e671c74ffe7c3de64650aa7
gui: Don't sleep before executing the status command.

This results in uncacceptable delays when the status command fails
for any reason, for example because the server is down.

Replace this code by introducing a struct timeval variable "next_exec",
which stores the earliest possible time to restart the status command.

Move all status fetching code before the select() call in do_select()
to open_stat_pipe() and rename the function to status_pre_select(),
which is more appropriate.
configure.ac
gui.c