[ovs-git] [openvswitch/ovs] fc5181: daemon-unix: Use same name for original or restart...

GitHub noreply at github.com
Thu Sep 6 18:03:17 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: fc518196085d4460e072344ae45bcb476f7fc302
      https://github.com/openvswitch/ovs/commit/fc518196085d4460e072344ae45bcb476f7fc302
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-09-06 (Thu, 06 Sep 2018)

  Changed paths:
    M lib/daemon-unix.c

  Log Message:
  -----------
  daemon-unix: Use same name for original or restarted children.

Linux has an idea of process name that is visible in /proc/$pid/comm.  This
is "ovs-vswitchd" for a freshly started ovs-vswitchd process.  When the
monitor code restarted a crash child, it changed it to the empty string.
This confused the daemon_is_running check in ovs-lib.in, which checks
comm.  This commit fixes the problem by setting the program name as comm
in newly restarted children.

VMware-BZ: #2191724
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Gurucharan Shetty <guru at ovn.org>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list