Add some debug code
This commit is contained in:
parent
ea89df2b76
commit
3acc8adcad
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ void AutoCloseFD::close()
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
if (::close(fd) == -1)
|
if (::close(fd) == -1)
|
||||||
/* This should never happen. */
|
/* This should never happen. */
|
||||||
throw SysError("closing file descriptor");
|
throw SysError(format("closing file descriptor %1%") % fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue