From 62d6e85b151c3a4ec36e600024a1aa7e44a804a9 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Wed, 10 Apr 2024 16:53:31 +0000 Subject: [PATCH] fix(libsinsp_e2e): force changes to disk Signed-off-by: Roberto Scolaro --- test/libsinsp_e2e/forking.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libsinsp_e2e/forking.cpp b/test/libsinsp_e2e/forking.cpp index 5d6473fe89a..3b59587b09f 100644 --- a/test/libsinsp_e2e/forking.cpp +++ b/test/libsinsp_e2e/forking.cpp @@ -336,6 +336,7 @@ static int clone_callback_1(void* arg) // using a weird clone() here something goes wrong with // recent version of glibc ctid = syscall(SYS_getpid); + fsync(cp->fd); close(cp->fd); return 0; }