diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-14 10:00:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-14 12:28:28 +0000 |
commit | cd8e5008f3d91d432558de0798ff3a8ad32b965d (patch) | |
tree | 24123021da7e6b50dbabefe89cadb461be1eb742 /nlplug-findfs.c | |
parent | df1b22e3539ccfcb4bc0503322d54bd3a9544f41 (diff) | |
download | mkinitfs-cd8e5008f3d91d432558de0798ff3a8ad32b965d.tar.bz2 mkinitfs-cd8e5008f3d91d432558de0798ff3a8ad32b965d.tar.xz |
nlplug-findfs: dont exit before trigger thread is complete
Diffstat (limited to 'nlplug-findfs.c')
-rw-r--r-- | nlplug-findfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 6b2c356..a016b23 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -698,7 +698,7 @@ int main(int argc, char *argv[]) pthread_create(&tid, NULL, trigger_thread, &fds[1].fd); - while ((r = poll(fds, numfds, conf.timeout)) > 0) { + while ((r = poll(fds, numfds, conf.timeout)) > 0 || numfds > 1) { size_t len; struct iovec iov; char cbuf[CMSG_SPACE(sizeof(struct ucred))]; |