[ovs-git] [openvswitch/ovs] 8ee458: vlog: reopen log file in monitor process

GitHub noreply at github.com
Wed Aug 2 19:28:44 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8ee4583645db89a7d3d2cd3137a649aedcd8358b
      https://github.com/openvswitch/ovs/commit/8ee4583645db89a7d3d2cd3137a649aedcd8358b
  Author: Huanle Han <hanxueluo at gmail.com>
  Date:   2017-08-02 (Wed, 02 Aug 2017)

  Changed paths:
    M lib/daemon-unix.c

  Log Message:
  -----------
  vlog: reopen log file in monitor process

ovs daemon process will reopen file after every log rotate.
However, it doesn't happen to monitor process. That is to say,
fd of log file in monitor proces always point to oldest disk file,
which is deleted after log rotate. Once daemon process restarts
from a crash, it inherits parent's fds, including the deleted log file.

This commit reopens log file in monitor process everytime it
wakes up from waitpid.

Signed-off-by: Huanle Han <hanxueluo at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list