Add rk_cloexec_dir() to lib/roken

This commit is contained in:
Asanka Herath
2009-12-22 14:03:39 -05:00
parent ff11a8ae43
commit 68cfbb7e19
6 changed files with 18 additions and 6 deletions

View File

@@ -113,9 +113,7 @@ dir_iter_start(hx509_context context,
free(d);
return errno;
}
#ifndef _WIN32
rk_cloexec(dirfd(d->dir));
#endif
rk_cloexec_dir(d->dir);
d->certs = NULL;
d->iter = NULL;