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

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


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 1bc1377c731383e677a15f9f3591ed609e550ea4
      https://github.com/openvswitch/ovs/commit/1bc1377c731383e677a15f9f3591ed609e550ea4
  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