bridge: Report PID of yielding process when multiple instances run.
authorJustin Pettit <jpettit@nicira.com>
Mon, 8 Apr 2013 17:44:50 +0000 (10:44 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 8 Apr 2013 20:43:32 +0000 (13:43 -0700)
Normally, the daemon code will detect when multiple instances are run
and print the conflicting PID.  However, if ovs-vswitchd is not run in
daemon mode or the pidfile is removed, a database lock is checked.  The
message it prints wasn't specific enough about which process was backing
off due to not getting the lock.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
vswitchd/bridge.c

index 899fd64..19a8f48 100644 (file)
@@ -2274,7 +2274,8 @@ bridge_run(void)
             struct bridge *br, *next_br;
 
             VLOG_ERR_RL(&rl, "another ovs-vswitchd process is running, "
-                        "disabling this process until it goes away");
+                        "disabling this process (pid %ld) until it goes away",
+                        (long int) getpid());
 
             HMAP_FOR_EACH_SAFE (br, next_br, node, &all_bridges) {
                 bridge_destroy(br);