diff options
Diffstat (limited to 'src/utility')
-rw-r--r-- | src/utility/io.h | 2 | ||||
-rw-r--r-- | src/utility/logger.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/utility/io.h b/src/utility/io.h index ed1f542..32d6ecb 100644 --- a/src/utility/io.h +++ b/src/utility/io.h @@ -13,7 +13,7 @@ namespace utility { class FileDescriptorGuard { public: FileDescriptorGuard(const std::string& path) { - this->fd_ = open(path.c_str(), O_CREAT | O_WRONLY | O_APPEND); + this->fd_ = open(path.c_str(), O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); if ( !this->fd_ ) { this->fd_ = STDERR_FILENO; diff --git a/src/utility/logger.h b/src/utility/logger.h index 475f33d..e21f6fd 100644 --- a/src/utility/logger.h +++ b/src/utility/logger.h @@ -5,8 +5,6 @@ #include <boost/process.hpp> -#include <iostream> - namespace utility { class Logger { |