diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-03-03 13:58:02 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-03-03 13:58:02 +0000 |
commit | 4bbdcfbb45112fc3b025f0feff7b995ee373b091 (patch) | |
tree | 0b23d65ee3c994465997f759c62869f3f3efbca3 /src/libutil | |
parent | 9e6bca876518fbcd32c67d72721310f6b60f6f75 (diff) | |
download | guix-4bbdcfbb45112fc3b025f0feff7b995ee373b091.tar.gz |
* Don't use fork() in copyPath(), but a string buffer.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/archive.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index 67e236668a..b498c95c14 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -42,6 +42,7 @@ struct DumpSink { + virtual ~DumpSink() { } virtual void operator () (const unsigned char * data, unsigned int len) = 0; }; @@ -50,6 +51,8 @@ void dumpPath(const Path & path, DumpSink & sink); struct RestoreSource { + virtual ~RestoreSource() { } + /* The callee should store exactly *len bytes in the buffer pointed to by data. It should block if that much data is not yet available, or throw an error if it is not going to be |