From dc452792e6886750af698e999c2a059d43d0606d Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Fri, 22 Dec 2023 18:36:42 +0800 Subject: bugfix: Correct the error in the conditional statement. --- service/src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/app.c b/service/src/app.c index 3d3f537..bd17fa8 100644 --- a/service/src/app.c +++ b/service/src/app.c @@ -100,7 +100,7 @@ void * apps_survival_monitor(void * arg) { char buf[64]; int n = read(fd, buf, sizeof(buf)); - if (n = 0) + if (n == 0) __deconstruct_app(app_iter); } } -- cgit v1.2.3