]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logger: fix EINTR handling
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Dec 2010 22:00:01 +0000 (14:00 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Dec 2010 22:00:01 +0000 (14:00 -0800)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/common/DoutStreambuf.cc

index e11c275b1066f9f44c85c024a08264774bd99139..e381a15c9cc90e4e9c96ecb90c9f4f5ec44588a0 100644 (file)
@@ -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";