version 1.28, 2014/01/08 22:58:50 |
version 1.29, 2014/09/16 01:29:48 |
Line 499 __res_vinit(res_state statp, int preinit |
|
Line 499 __res_vinit(res_state statp, int preinit |
|
#ifdef RESOLVSORT |
#ifdef RESOLVSORT |
statp->nsort = nsort; |
statp->nsort = nsort; |
#endif |
#endif |
statp->_u._ext.ext->resfd = dup(fileno(fp)); |
statp->_u._ext.ext->resfd = fcntl(fileno(fp), F_DUPFD_CLOEXEC); |
(void) fclose(fp); |
(void) fclose(fp); |
if (fstat(statp->_u._ext.ext->resfd, &st) != -1) |
if (fstat(statp->_u._ext.ext->resfd, &st) != -1) |
__res_conf_time = statp->_u._ext.ext->res_conf_time = |
__res_conf_time = statp->_u._ext.ext->res_conf_time = |