ls0f

Results 2 issues of ls0f

1) flush before dup2. 2) file open use O_APPEND may be better.

May fix https://github.com/argoproj/argo-cd/issues/8314 https://github.com/argoproj/argo-cd/issues/6043 **WIP** *It should be discussed, then add more tests.* Checklist: * [ ] Either (a) I've created an [enhancement proposal](https://github.com/argoproj/argo-cd/issues/new/choose) and discussed it with the community,...

lifecycle/rotten