Commit 157485e6 authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent 4bca12d0
Loading
Loading
Loading
Loading
+1 −0
Changes for src/coredump.cpp: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -258,6 +258,7 @@ namespace syslite {
                size += r;
            }
            if (fd >= 0) {
                if (why.empty() && size == 0) why = "the kernel sent no core";
                if (why.empty() && (ftruncate(fd, size) != 0 || fsync(fd) != 0))
                    why = std::string("write failed: ") + std::strerror(errno);
                ::close(fd);