Re: [ovs-dev] [PATCH v2] daemon-unix: Close log file in monitor process while waiting on child.

2022-02-14 Thread William Tu
On Sat, Jan 29, 2022 at 11:38 AM Ben Pfaff wrote: > > Until now, the monitor process held its log file open while it waited for > the child to exit, and then it reopened it after the child exited. Holding > the log file open this way prevented log rotation from freeing disk space. > This commit

[ovs-dev] [PATCH v2] daemon-unix: Close log file in monitor process while waiting on child.

2022-01-29 Thread Ben Pfaff
Until now, the monitor process held its log file open while it waited for the child to exit, and then it reopened it after the child exited. Holding the log file open this way prevented log rotation from freeing disk space. This commit avoids the problem by closing the log file before waiting,