mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #1554, support logrotate copytruncate. 2.0.272
This commit is contained in:
parent
731e87876e
commit
dd46a4f700
3 changed files with 6 additions and 3 deletions
|
@ -410,6 +410,9 @@ void SrsFastLog::open_log_file()
|
|||
return;
|
||||
}
|
||||
|
||||
fd = ::open(filename.c_str(), O_RDWR | O_CREAT | O_APPEND);
|
||||
fd = ::open(filename.c_str(),
|
||||
O_RDWR | O_CREAT | O_APPEND,
|
||||
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue