gui: Call waitpid() from exec and status task.