diff options
author | Shea Levy <shea@shealevy.com> | 2018-03-02T15·59-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-03-02T15·59-0500 |
commit | aa8bbbf69dfb7a1cd02237fee65c2fce39d27556 (patch) | |
tree | f1780a7b9ca97e3034d14dce3adfba7184fe8d67 /src/libutil | |
parent | 5c7a6d07de1dbe18eaac5e6bce766dbe978b8165 (diff) | |
parent | 78ac3eb4ebc04e180abeb01bcc6f9d4103522eab (diff) |
Merge branch 'write-failure-fixes' of git://github.com/lheckemann/nix
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/serialise.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index 950e6362a245..9e2a502afaf8 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -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; } } |