From 85c30866871a3d66ef13dba298eb71fcffdac3cb Mon Sep 17 00:00:00 2001 From: Adrian Muzyka Date: Tue, 25 Jun 2024 06:07:29 +0000 Subject: [PATCH] Call PID clean up on checkpoint and restore timeout Make sure dump is removed, since the worker exit signal may come after the clean up of checkpoint data and be not effective. --- memcr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memcr.c b/memcr.c index 08c5c84..c1f85a9 100644 --- a/memcr.c +++ b/memcr.c @@ -2512,6 +2512,7 @@ static int checkpoint_procedure_service(int checkpointSocket, int cd, int pid, i // unable to read response from worker, kill both kill(pid, SIGKILL); kill(worker_pid, SIGKILL); + cleanup_pid(pid); send_response_to_client(cd, MEMCR_ERROR_GENERAL); return MEMCR_ERROR_GENERAL; } @@ -2551,6 +2552,7 @@ static void restore_procedure_service(int cd, struct service_command svc_cmd, in // unable to read response from worker, kill both kill(svc_cmd.pid, SIGKILL); kill(worker_pid, SIGKILL); + cleanup_pid(svc_cmd.pid); ret = -1; }