|
@ -67,6 +67,7 @@ rotate_logfile(File, 0) -> |
|
|
%% open the file in write-only mode to truncate/create it |
|
|
%% open the file in write-only mode to truncate/create it |
|
|
case file:open(File, [write]) of |
|
|
case file:open(File, [write]) of |
|
|
{ok, FD} -> |
|
|
{ok, FD} -> |
|
|
|
|
|
_ = file:close(FD), |
|
|
_ = file:close(FD), |
|
|
_ = file:close(FD), |
|
|
{ok, _Ctime} = maybe_update_ctime(File), |
|
|
{ok, _Ctime} = maybe_update_ctime(File), |
|
|
ok; |
|
|
ok; |
|
|