diff options
Diffstat (limited to 'tools/alg-test.c')
-rw-r--r-- | tools/alg-test.c | 2 |
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; |