ref: cd8e5008f3d91d432558de0798ff3a8ad32b965d
parent: df1b22e3539ccfcb4bc0503322d54bd3a9544f41
author: Natanael Copa <ncopa@alpinelinux.org>
date: Wed Oct 14 05:00:58 CDT 2015
nlplug-findfs: dont exit before trigger thread is complete
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -698,7 +698,7 @@
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))];