set name of daemon stdout

This commit is contained in:
wowario 2023-01-31 10:28:09 +03:00
parent e71bef4496
commit 37195f2128
No known key found for this signature in database
GPG Key ID: 793504B449C69220

View File

@ -120,7 +120,7 @@ void fork(const std::string & pidfile)
if (!tmpdir) if (!tmpdir)
tmpdir = TMPDIR; tmpdir = TMPDIR;
std::string output = 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 int flags = O_WRONLY | O_CREAT | O_APPEND;
const mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; const mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
if (open(output.c_str(), flags, mode) < 0) if (open(output.c_str(), flags, mode) < 0)