From c00e89fc893092ef2efb74939efd2282dcbe6e92 Mon Sep 17 00:00:00 2001 From: Namhoon Kim Date: Wed, 6 Apr 2016 19:36:07 +0000 Subject: Add close() --- bin/mttest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mttest.c b/bin/mttest.c index e2813e6..3f1f655 100644 --- a/bin/mttest.c +++ b/bin/mttest.c @@ -16,6 +16,7 @@ #include #include #include +#include /* Include gettid() */ #include @@ -106,6 +107,7 @@ int main(int argc, char** argv) printf("mmap failed.\n"); return -1; } + close(fd); mlockall(MCL_CURRENT | MCL_FUTURE); /***** -- cgit v1.2.2