]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Execute stat command in status_post_select().
authorAndre Noll <maan@systemlinux.org>
Sat, 4 Jan 2014 05:38:23 +0000 (05:38 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:48:54 +0000 (15:48 +0200)
commit405a66cac091943206ea466455638b876942fe1d
tree4d6595ea0fc3b37677017a5234ab160573843265
parentdbd982ace13078dc6615fa66ccb5dc8134f6ec35
gui: Execute stat command in status_post_select().

pre_select methods should only deal with fd sets and select timeouts,
so the part of status_pre_select() which restarts the status command
belongs to status_post_select().

Unfortunately, after this change both status_pre_select() and
status_post_select() need to know when to restart the stat command.
Therefore we had to add a new global variable next_exec.

The patch also moves status_pre_select() up so that the two functions
are close to each other.
gui.c