Skip to content

Commit 18dfd3e

Browse files
authored
Merge pull request #257 from FYP-Auto-Scale-JasmineGraph/fix-shutdown
Fix shutdown command on workers
2 parents 8c8eb3f + 1622820 commit 18dfd3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/JasmineGraphInstanceService.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ limitations under the License.
1313

1414
#include "JasmineGraphInstanceService.h"
1515

16+
#include <signal.h>
1617
#include <stdio.h>
1718
#include <unistd.h>
1819

@@ -1980,6 +1981,8 @@ static inline void close_command(int connFd, bool *loop_exit_p) {
19801981

19811982
static inline void shutdown_command(int connFd) {
19821983
close(connFd);
1984+
pid_t ppid = getppid();
1985+
kill(ppid, SIGTERM);
19831986
exit(0);
19841987
}
19851988

0 commit comments

Comments
 (0)