On 15/11/13 16:11, Helmut Schaa wrote:
Use respawn_retry==0 as indication to respawn a process forever.
Signed-off-by: Helmut Schaa<[email protected]>
---
instance.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/instance.c b/instance.c
index 05b0f99..2db1ded 100644
--- a/instance.c
+++ b/instance.c
@@ -162,7 +162,7 @@ instance_exit(struct uloop_process *p, int ret)
in->respawn_count++;
else
in->respawn_count = 0;
- if (in->respawn_count> in->respawn_retry) {
+ if (in->respawn_count> in->respawn_retry&& in->respawn_retry>
0 ) {
LOG("Instance %s::%s s in a crash loop %d crashes, %ld
seconds since last crash\n",
in->srv->name,
in->name, in->respawn_count, runtime);
in->restart = in->respawn = 0;
Hi Helmut,
i just pushed this fix. I also pushed a fix for the running trigger bug
you reported.
John
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel