watcher: Don't complain if select() syscall got interrupted
[strongswan.git] / src / libstrongswan / processing / watcher.c
index 9773e76..cc3c3a7 100644 (file)
@@ -340,7 +340,7 @@ static job_requeue_t watch(private_watcher_t *this)
                }
                else
                {
                }
                else
                {
-                       if (!this->pending)
+                       if (!this->pending && errno != EINTR)
                        {       /* complain only if no pending updates */
                                DBG1(DBG_JOB, "watcher select() error: %s", strerror(errno));
                        }
                        {       /* complain only if no pending updates */
                                DBG1(DBG_JOB, "watcher select() error: %s", strerror(errno));
                        }