Skip to content

Commit b58f2b8

Browse files
adrianM27mkozlowski
authored andcommitted
Do return instead of crash on parasite not available
Do not trigger crash when checkpointed PID with parasite was externally terminated, and parasite PID was already reaped by Memcr service process.
1 parent 26f11f6 commit b58f2b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memcr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ static void *parasite_watch_thread(void *ptr)
20652065
ret = wait4(pid, &status, __WALL, NULL);
20662066
if (ret != pid) {
20672067
fprintf(stderr, "[-] wait4() ret %d != parasite %ld, errno %m\n", ret, pid);
2068-
assert(ret == pid);
2068+
return NULL;
20692069
}
20702070

20712071
parasite_status_signal(pid, status);

0 commit comments

Comments
 (0)