set name of daemon stdout

pull/460/head
wowario 1 year ago
parent ded9393b35
commit c56eeaa8b2
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -120,7 +120,7 @@ void fork(const std::string & pidfile)
if (!tmpdir)
tmpdir = TMPDIR;
std::string output = tmpdir;
output += "/bitmonero.daemon.stdout.stderr";
output += "/wownero.daemon.stdout.stderr";
const int flags = O_WRONLY | O_CREAT | O_APPEND;
const mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
if (open(output.c_str(), flags, mode) < 0)

Loading…
Cancel
Save