]> git.tue.mpg.de Git - paraslash.git/commit
gui: Move external command handling out of do_select().
authorAndre Noll <maan@systemlinux.org>
Fri, 3 Jan 2014 18:16:51 +0000 (18:16 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:48:54 +0000 (15:48 +0200)
commit2436fd444428d2549575fe40484ffae9dc11e58e
treee4c748b9c3cccc0e5708e690c46643d5caa36bf6
parentf840be8ddc43e321b07edf24eafeab5bc5bc57ef
gui: Move external command handling out of do_select().

This commit moves the part of do_select() that deals with
external commands to separate functions, command_pre_select() and
command_post_select().

This change shortens do_select() considerably and is another step
towards the goal of using the paraslash scheduling system also for
para_gui.

One thing to note is that the new command_post_select() returns -1 if
both both fds are closed, i.e. when the currently running command has
terminated. This value gets translated back to zero in do_select(),
preserving the current semantics.
gui.c