Loading src/coredump.cpp +1 −0 Changes for src/coredump.cpp: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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); Loading Loading
src/coredump.cpp +1 −0 Changes for src/coredump.cpp: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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); Loading