summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
56c8687)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
+ if (nb_fd < 2) {
+ /*
+ * There should *always* be at least two fds in the pollfd. This safety
+ * check make sure the poll() will actually try on those two pipes at
+ * best which are the thread_quit_pipe and apps_cmd_pipe.
+ */
+ nb_fd = 2;
+ }
+
/* Destroy old pollfd */
free(old_pollfd);
/* Destroy old pollfd */
free(old_pollfd);