Revision e386e4be src/signals.cpp

View differences:

src/signals.cpp
46 46
bool daemonize(ConfigFile &config)
47 47
{
48 48
  std::string logfile = config.get("log");
49
  int fd = open(logfile.c_str(), O_WRONLY|O_APPEND|O_CREAT);
49
  int fd = open(logfile.c_str(), O_WRONLY|O_APPEND|O_CREAT, 0744);
50 50
  if (fd == -1) {
51 51
    std::cerr << "Failed to open log file " << logfile << "\n";
52 52
    return false;

Also available in: Unified diff