summaryrefslogtreecommitdiff
path: root/tools/alg-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/alg-test.c')
-rw-r--r--tools/alg-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/alg-test.c b/tools/alg-test.c
index 33c39756..7ab740e1 100644
--- a/tools/alg-test.c
+++ b/tools/alg-test.c
@@ -60,7 +60,7 @@ static int create_hash(int sk, const char *pathname)
struct stat st;
int fd;
- fd = open(pathname, O_RDONLY);
+ fd = open(pathname, O_RDONLY | O_CLOEXEC);
if (fd < 0)
return -1;