← Commit list

4e116823f

Eric Andersen
Eric Andersen
2002-04-13
FAILED Duration: 3s

Subject

Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTR

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+3 -1
@@ -361,8 +361,10 @@ static const int IOV_COUNT = 2;
v->iov_base = msg;
v->iov_len = strlen(msg);
+writev_retry:
if ( -1 == writev(remotefd,iov, IOV_COUNT)){
- error_msg_and_die("syslogd: cannot write to remote file handle on "
+ if (errno == EINTR) goto writev_retry;
+ error_msg_and_die("syslogd: cannot write to remote file handle on"
"%s:%d",RemoteHost,RemotePort);
}
}