From 756dd56887234fee7a4e472c51b9a27f4fa2c687 Mon Sep 17 00:00:00 2001 From: Nishi Date: Sat, 7 Sep 2024 13:07:50 +0000 Subject: [PATCH] disable resurrecting, no matter if it stopped or not git-svn-id: file:///raid/svn-personal/mokou/trunk@14 35d6bad2-6c5c-c749-ada2-a2c82cb3bd79 --- Mokou/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mokou/service.c b/Mokou/service.c index a9c5b67..282a8f0 100644 --- a/Mokou/service.c +++ b/Mokou/service.c @@ -234,6 +234,8 @@ int mk_stop_service(const char* name){ mk_log(log); free(log); + srv->stopped = true; /* No more resurrecting */ + bool alive = false; FILE* f = fopen(srv->pidfile, "r"); @@ -343,7 +345,6 @@ int mk_stop_service(const char* name){ return 6; } - srv->stopped = true; return 0; } } -- 2.43.0