Fix new poll() code for helper pipe. Removed CPU-spin.

This commit is contained in:
Simon Kelley
2015-07-30 20:59:07 +01:00
parent f6381cf482
commit 63ec5d1264
3 changed files with 13 additions and 1 deletions

View File

@@ -1025,7 +1025,7 @@ int main (int argc, char **argv)
#endif
# ifdef HAVE_SCRIPT
if (daemon->helperfd != -1 && poll_check(daemon->helperfd, POLLIN))
if (daemon->helperfd != -1 && poll_check(daemon->helperfd, POLLOUT))
helper_write();
# endif
#endif