From: Zdeněk Salvet Date: Thu, 6 May 2010 09:44:10 +0000 (+0000) Subject: Don't close file descriptors with unknown purpose, library code may X-Git-Tag: glite-security-gsoap-plugin_R_2_1_2_1~34 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=9fd830f71e720d1c4a512a264e0d68948c20ddac;p=jra1mw.git Don't close file descriptors with unknown purpose, library code may use them. --- diff --git a/org.glite.security.proxyrenewal/src/renewd.c b/org.glite.security.proxyrenewal/src/renewd.c index 3c8512c..69a2ea0 100644 --- a/org.glite.security.proxyrenewal/src/renewd.c +++ b/org.glite.security.proxyrenewal/src/renewd.c @@ -557,9 +557,6 @@ int main(int argc, char *argv[]) globus_module_activate(GLOBUS_GSI_CERT_UTILS_MODULE); globus_module_activate(GLOBUS_GSI_PROXY_MODULE); - if (!debug) - for (fd = 3; fd < OPEN_MAX; fd++) close(fd); - if (!debug) { /* chdir ? */ if (daemon(1,0) == -1) {