/* + means continue after end, like normal. */
if (*failpath == '+')
failpath = NULL;
- else {
+ else if (*failpath == '\0') {
+ /* Continue, but don't inject errors. */
+ return call->fail = false;
+ } else {
if (tolower((unsigned char)*failpath)
!= info_to_arg[call->type])
errx(1, "Failpath expected '%c' got '%c'\n",
else
ret = poll(pfd, 2, failtest_timeout_ms);
- if (ret <= 0)
+ if (ret == 0)
hand_down(SIGUSR1);
+ if (ret < 0) {
+ if (errno == EINTR)
+ continue;
+ err(1, "Poll returned %i", ret);
+ }
if (pfd[0].revents & POLLIN) {
ssize_t len;