]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Call waitpid() from exec and status task.
authorAndre Noll <maan@systemlinux.org>
Mon, 27 Jan 2014 10:35:08 +0000 (11:35 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:48:55 +0000 (15:48 +0200)
commita99d213561de016b3d7a0d54f1a6678379d32ee3
tree98fcb6357441b9ff4819d1fabe92483d9ea11130
parentccd288cee4d15e54640d87c1451b46c3ff0e2591
gui: Call waitpid() from exec and status task.

This commit changes signal_post_select() to not call waitpid() via
para_reap_child() any more. Instead it notifies all tasks using the
new error code E_GUI_SIGCHLD. The exec task and the status task honor
this notification and call waitpid() for their "own" pid to check
whether the executing process or the stat process has terminated and
to obtain the exit status.

Although neither task cares deeply about the exit code, the menu
commands, which will be implemented in subsequent patches, will
care. So it's good to have the option to get this information.
error.h
gui.c