[ovs-dev] [PATCH] daemon: Add comment.

Ben Pfaff blp at nicira.com
Mon May 14 21:22:45 UTC 2012


Thanks, I pushed this to master.

On Mon, May 14, 2012 at 02:17:30PM -0700, Ethan Jackson wrote:
> Looks good, thanks.
> 
> Ethan
> 
> On Mon, May 14, 2012 at 2:14 PM, Ben Pfaff <blp at nicira.com> wrote:
> > ---
> >  lib/daemon.c |   11 +++++++++++
> >  1 files changed, 11 insertions(+), 0 deletions(-)
> >
> > diff --git a/lib/daemon.c b/lib/daemon.c
> > index c4a8264..6725683 100644
> > --- a/lib/daemon.c
> > +++ b/lib/daemon.c
> > @@ -245,6 +245,17 @@ daemonize(void)
> >     daemonize_complete();
> >  }
> >
> > +/* Forks, then:
> > + *
> > + *   - In the parent, waits for the child to signal that it has completed its
> > + *     startup sequence.  Then stores -1 in '*fdp' and returns the child's pid.
> > + *
> > + *   - In the child, stores a fd in '*fdp' and returns 0.  The caller should
> > + *     pass the fd to fork_notify_startup() after it finishes its startup
> > + *     sequence.
> > + *
> > + * If something goes wrong with the fork, logs a critical error and aborts the
> > + * process. */
> >  static pid_t
> >  fork_and_wait_for_startup(int *fdp)
> >  {
> > --
> > 1.7.2.5
> >
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list