On Fri, Apr 13, 2018 at 03:04:21PM -0700, Richard Cochran wrote:
> On Fri, Apr 13, 2018 at 05:11:59PM +0200, Miroslav Lichvar wrote:
> > @@ -1148,6 +1148,8 @@ static int auto_init_ports(struct node *node, int
> > add_rt)
> > char iface[IFNAMSIZ];
> >
> > while (1) {
> > + if
On Fri, Apr 13, 2018 at 05:11:59PM +0200, Miroslav Lichvar wrote:
> @@ -1148,6 +1148,8 @@ static int auto_init_ports(struct node *node, int
> add_rt)
> char iface[IFNAMSIZ];
>
> while (1) {
> + if (!is_running())
> + return -1;
Why not this?