Merge branch 'write-failure-fixes' of git://github.com/lheckemann/nix

This commit is contained in:
Shea Levy 2018-03-02 10:59:59 -05:00
commit aa8bbbf69d
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
5 changed files with 16 additions and 1 deletions

View file

@ -67,7 +67,8 @@ void FdSink::write(const unsigned char * data, size_t len)
try {
writeFull(fd, data, len);
} catch (SysError & e) {
_good = true;
_good = false;
throw;
}
}