mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 08:27:07 +00:00
Set appendOnly on stdout/stderr handles
This commit is contained in:
@@ -342,9 +342,11 @@ void init() {
|
|||||||
stdinHandle = handles.alloc(std::move(stdinObject), FILE_GENERIC_READ, 0);
|
stdinHandle = handles.alloc(std::move(stdinObject), FILE_GENERIC_READ, 0);
|
||||||
auto stdoutObject = make_pin<FileObject>(STDOUT_FILENO);
|
auto stdoutObject = make_pin<FileObject>(STDOUT_FILENO);
|
||||||
stdoutObject->closeOnDestroy = false;
|
stdoutObject->closeOnDestroy = false;
|
||||||
|
stdoutObject->appendOnly = true;
|
||||||
stdoutHandle = handles.alloc(std::move(stdoutObject), FILE_GENERIC_WRITE, 0);
|
stdoutHandle = handles.alloc(std::move(stdoutObject), FILE_GENERIC_WRITE, 0);
|
||||||
auto stderrObject = make_pin<FileObject>(STDERR_FILENO);
|
auto stderrObject = make_pin<FileObject>(STDERR_FILENO);
|
||||||
stderrObject->closeOnDestroy = false;
|
stderrObject->closeOnDestroy = false;
|
||||||
|
stderrObject->appendOnly = true;
|
||||||
stderrHandle = handles.alloc(std::move(stderrObject), FILE_GENERIC_WRITE, 0);
|
stderrHandle = handles.alloc(std::move(stderrObject), FILE_GENERIC_WRITE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user