aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/mttest.c2
1 files changed, 2 insertions, 0 deletions
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 @@
16#include <sys/mman.h> 16#include <sys/mman.h>
17#include <sys/stat.h> 17#include <sys/stat.h>
18#include <fcntl.h> 18#include <fcntl.h>
19#include <unistd.h>
19/* Include gettid() */ 20/* Include gettid() */
20#include <sys/types.h> 21#include <sys/types.h>
21 22
@@ -106,6 +107,7 @@ int main(int argc, char** argv)
106 printf("mmap failed.\n"); 107 printf("mmap failed.\n");
107 return -1; 108 return -1;
108 } 109 }
110 close(fd);
109 111
110 mlockall(MCL_CURRENT | MCL_FUTURE); 112 mlockall(MCL_CURRENT | MCL_FUTURE);
111 /***** 113 /*****