You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on windows system , sub process will inherit "Handles" default (same as linux).
but win not allow rename file during occupied by sub process。
if i use rotate-sink ,will trigger permission denied error.
so , need change open mode to "ab+N" on windows
N means "_O_NOINHERIT by default in the _MSC_VER"
Thanks @hahanonym. In my case, I was creating a subprocess using the CreateProcessA function. I modified the function call's 5th argument ([in] BOOL bInheritHandles) to false and the parent process could rename the log file.
on windows system , sub process will inherit "Handles" default (same as linux).
but win not allow rename file during occupied by sub process。
if i use rotate-sink ,will trigger permission denied error.
so , need change open mode to "ab+N" on windows
N means "_O_NOINHERIT by default in the _MSC_VER"
ref : [https://github.com/apache/arrow/pull/3085]
sorry for my pool English.
The text was updated successfully, but these errors were encountered: