[OpenWrt-Devel] [PATCH] procd: instance: Support deleting stopped instances
Hans Dedecker
dedeckeh at gmail.com
Sat Apr 6 07:32:35 EDT 2019
On Sat, Apr 6, 2019 at 12:27 PM Kristian Evensen
<kristian.evensen at gmail.com> wrote:
>
> Hi Hans,
>
> On Thu, Apr 4, 2019 at 10:59 PM Hans Dedecker <dedeckeh at gmail.com> wrote:
> > instance_delete should only be called when halt is set to true similar
> > as in instance_exit
>
> Thanks for the feedback. Just so I make sure I understand correctly,
> do you mean that the conditional should look something like this?
>
> 577 if (!in->proc.pending) {
> 578 if (halt)
> 579 instance_delete(in);
> 580 return;
> 581 }
Indeed I meant there should be a conditional halt check before calling
instance_delete
Hans
>
> BR,
> Kristian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list