From 16228202dede29eb1822a74ba082349a289f008b Mon Sep 17 00:00:00 2001 From: thevindu-w Date: Tue, 5 Nov 2024 23:04:19 +0530 Subject: [PATCH] Kill main process of worker on shutdown command --- src/server/JasmineGraphInstanceService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/JasmineGraphInstanceService.cpp b/src/server/JasmineGraphInstanceService.cpp index 10e897860..1e638048c 100644 --- a/src/server/JasmineGraphInstanceService.cpp +++ b/src/server/JasmineGraphInstanceService.cpp @@ -13,6 +13,7 @@ limitations under the License. #include "JasmineGraphInstanceService.h" +#include #include #include @@ -1980,6 +1981,8 @@ static inline void close_command(int connFd, bool *loop_exit_p) { static inline void shutdown_command(int connFd) { close(connFd); + pid_t ppid = getppid(); + kill(ppid, SIGTERM); exit(0); }