From cd8e5008f3d91d432558de0798ff3a8ad32b965d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 14 Oct 2015 10:00:58 +0000 Subject: nlplug-findfs: dont exit before trigger thread is complete --- nlplug-findfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nlplug-findfs.c') 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))]; -- cgit v1.2.3