mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
* Don't use fork() in copyPath(), but a string buffer.
This commit is contained in:
parent
9e6bca8765
commit
4bbdcfbb45
2 changed files with 17 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue