Project

General

Profile

« Previous | Next » 

Revision 856fcf9a

Added by David Sorber over 2 years ago

Fix bug where files were not being closed; v0.1.1.

View differences:

src/CopyManager.cc
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/sendfile.h>
#include <unistd.h>
#include "CopyManager.h"
#include "Logger.h"
......
continue;
}
close(fromFd);
close(toFd);
LOG(debug) << "Copy: " << entry.path().string()
<< " to: " << destFilePath.string();
}
......
}
}
}
}

Also available in: Unified diff