[ovs-dev] [PATCH] bridge: Report PID of yielding process when multiple instances run.

Gurucharan Shetty shettyg at nicira.com
Thu Apr 25 23:06:35 UTC 2013


On Thu, Apr 25, 2013 at 2:37 PM, Justin Pettit <jpettit at nicira.com> wrote:

>
> On Apr 25, 2013, at 10:33 AM, Ben Pfaff <blp at nicira.com> wrote:
>
> > On Mon, Apr 08, 2013 at 10:51:44AM -0700, Justin Pettit wrote:
> >> @@ -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 (%d) until it goes
> away",
> >> +                        getpid());
> >
> > pid_t isn't necessarily compatible with int.  It might be any integer
> > type.  The cautious thing to do is to cast it to some specific integer
> > type to use it with a format string.  I usually cast to "long int" and
> > use %ld.
> >
> > I might say (pid %ld) instead of just (%d) to make it really clear
> > what the number is.
>
> Good points.  I updated the commit with those changes and pushed it.
>

Is there any reason we don't exit when we know that another vswitchd
process is running?
We do that when we know that another process owns the pidfile lock.

Thanks,
Guru


>
> --Justin
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130425/cad3273f/attachment-0003.html>


More information about the dev mailing list