about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-16T16·52+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-16T16·52+0200
commit054be5025762c5e1c7e853c4fa5d7eed8da1727f (patch)
treec5bf9e3b3125bbffd8e05538ac39c5bd383badb7 /src/libutil/util.hh
parent2e1493037b06eb97bf9e07693a974afadbf94386 (diff)
printMsg(): Don't check for interrupts
Having the logger function potentially throw exceptions is
Heisenbuggy.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 7aeca0edc026..9bf54832699e 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -120,8 +120,8 @@ void replaceSymlink(const Path & target, const Path & link);
 /* Wrappers arount read()/write() that read/write exactly the
    requested number of bytes. */
 void readFull(int fd, unsigned char * buf, size_t count);
-void writeFull(int fd, const unsigned char * buf, size_t count);
-void writeFull(int fd, const string & s);
+void writeFull(int fd, const unsigned char * buf, size_t count, bool allowInterrupts = true);
+void writeFull(int fd, const string & s, bool allowInterrupts = true);
 
 MakeError(EndOfFile, Error)