diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-08-19 11:58:23 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-08-19 13:27:59 +0800 |
commit | c7e26c27c7e029e6670dfebc8f27d9295e9fdeb7 (patch) | |
tree | 2225119e0c21e6ddc96658b342dcacf4aed13258 /ui/twin | |
parent | e52a8c61a640ab4fce0b4caaa796ae3e1c4ff8a3 (diff) | |
download | petitboot-c7e26c27c7e029e6670dfebc8f27d9295e9fdeb7.zip petitboot-c7e26c27c7e029e6670dfebc8f27d9295e9fdeb7.tar.gz |
lib/waiter: handle -EINTR
Now that we're handing non-fatal signals (i.e., SIGCHLD in the process
lib), we need to gracefully handle -EINTR from poll().
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/twin')
-rw-r--r-- | ui/twin/main-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/twin/main-generic.c b/ui/twin/main-generic.c index fcda709..99520d0 100644 --- a/ui/twin/main-generic.c +++ b/ui/twin/main-generic.c @@ -204,7 +204,7 @@ static int run(struct pbt_client *client) while (1) { int result = waiter_poll(client->waitset); - if (result < 0 && errno != EINTR) { + if (result < 0) { pb_log("%s: poll: %s\n", __func__, strerror(errno)); break; } |