[LEDE-DEV] [PATCH] procd: Restore respawn on SIGTERM timeout
Kristian Evensen
kristian.evensen at gmail.com
Thu Jan 4 04:17:18 PST 2018
On Thu, Oct 19, 2017 at 3:02 PM, Kristian Evensen
<kristian.evensen at gmail.com> wrote:
> When SIGTERM times out, procd sends SIGKILL and then restarts the
> process once SIGCHLD has been received. This all works fine, with one
> exception - respawn is not restored when instance_start() is called from
> instance_exit(). The reason is that respawn is always set to false in
> instance_stop(), and the same service_instance struct is used for the
> instance_start()-call.
>
> The consequence is that if the process is killed/crashes again, it will
> not respawn. Solve this issue by adding a variable used to store the
> original value of respawn in instance_stop(), and then restore the
> original respawn-value in instance_exit().
>
> Signed-off-by: Kristian Evensen <kristian.evensen at gmail.com>
> ---
Ping on this patch :)
-Kristian
More information about the Lede-dev
mailing list