[systemd-devel] [PATCH v2 19/26] dhcp: Add timeout and main loop support
Patrik Flykt
Patrik.Flykt at linux.intel.com
Wed Nov 27 06:57:19 PST 2013
Hi,
On Tue, 2013-11-26 at 05:32 +0100, Zbigniew Jędrzejewski-Szmek wrote:
> > +static int client_timeout_resend(sd_event_source *s, uint64_t usec,
> > + void *userdata)
> > +{
...
> > +
> > + return 0;
> > +
> > +error:
> > + client_stop(client, err);
> > +
> > + return 0;
> Return err?
Here I didn't want to spill the error back to the event handling loop
code as the situation is handled internally by stopping the client and
giving the error reason to a registered callback (in patch 25/26) via
'client_stop()'.
Cheers,
Patrik
More information about the systemd-devel
mailing list