← Commit list

877d418b3

Glenn L McGrath
Glenn L McGrath
2003-02-09
SOURCE BUG Duration: 2s

Subject

Dont die if logging remotely fails, patch by Joshua Jackson

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+2 -6
@@ -386,12 +386,8 @@ static void logMessage(int pri, char *msg)
v->iov_base = msg;
v->iov_len = strlen(msg);
writev_retry:
- if (-1 == writev(remotefd, iov, IOV_COUNT)) {
- if (errno == EINTR) {
- goto writev_retry;
- }
- error_msg_and_die("cannot write to remote file handle on %s:%d",
- RemoteHost, RemotePort);
+ if ((-1 == writev(remotefd, iov, IOV_COUNT)) && (errno == EINTR)) {
+ goto writev_retry;
}
}
if (local_logging == TRUE)