From 258500e81e072a9778cf8e80382c199ce81d146f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 29 Sep 2024 19:45:24 +0900 Subject: [PATCH] [sample] memfd waits to exit --- sample/memfd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sample/memfd.cpp b/sample/memfd.cpp index 2b6d08b..312e7ca 100644 --- a/sample/memfd.cpp +++ b/sample/memfd.cpp @@ -25,6 +25,7 @@ public: int main() { + printf("pid=%d\n", getpid()); Code c1("Xbyak::abc", 123); Code c2("Xbyak::xyz", 456); printf("c1 %d\n", c1.getCode()()); @@ -36,4 +37,5 @@ int main() printf("%s\n", line.c_str()); } } + getchar(); }