aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-14 10:00:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-14 12:28:28 +0000
commitcd8e5008f3d91d432558de0798ff3a8ad32b965d (patch)
tree24123021da7e6b50dbabefe89cadb461be1eb742
parentdf1b22e3539ccfcb4bc0503322d54bd3a9544f41 (diff)
downloadmkinitfs-cd8e5008f3d91d432558de0798ff3a8ad32b965d.tar.bz2
mkinitfs-cd8e5008f3d91d432558de0798ff3a8ad32b965d.tar.xz
nlplug-findfs: dont exit before trigger thread is complete
-rw-r--r--nlplug-findfs.c2
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))];