From e2ba601be1eb52e623b08eea0a1f2917676022b2 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 7 Dec 2010 14:00:01 -0800 Subject: [PATCH] logger: fix EINTR handling Signed-off-by: Colin McCabe --- src/common/DoutStreambuf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/DoutStreambuf.cc b/src/common/DoutStreambuf.cc index e11c275b1066f..e381a15c9cc90 100644 --- a/src/common/DoutStreambuf.cc +++ b/src/common/DoutStreambuf.cc @@ -101,7 +101,7 @@ static int safe_write(int fd, const char *buf, signed int len) res = write(fd, buf, len); if (res < 0) { int err = errno; - if (err != EINVAL) { + if (err != EINTR) { ostringstream oss; oss << __func__ << ": failed to write to fd " << fd << ": " << cpp_strerror(err) << "\n"; -- 2.39.5