* [Cluster-devel] conga/ricci common/executils.cpp ricci/Auth.cpp
@ 2006-08-12 0:38 kupcevic
0 siblings, 0 replies; only message in thread
From: kupcevic @ 2006-08-12 0:38 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-08-12 00:38:36
Modified files:
ricci/common : executils.cpp
ricci/ricci : Auth.cpp
Log message:
ricci: fd leak
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/executils.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Auth.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
--- conga/ricci/common/executils.cpp 2006/08/10 22:53:07 1.6
+++ conga/ricci/common/executils.cpp 2006/08/12 00:38:36 1.7
@@ -102,7 +102,7 @@
// close open fds
for (unsigned int i=3; i<__FD_SETSIZE; i++)
- close(i);
+ close_fd(i);
// restore signals
for (int x = 1; x < _NSIG; x++)
--- conga/ricci/ricci/Auth.cpp 2006/08/10 22:53:09 1.3
+++ conga/ricci/ricci/Auth.cpp 2006/08/12 00:38:36 1.4
@@ -114,10 +114,10 @@
pass = pass.substr(size, pass.npos);
} while (!pass.empty());
} catch ( ... ) {
- close_fd(_stdin_pipe[0]);
+ close_fd(_stdin_pipe[1]);
throw;
}
- close_fd(_stdin_pipe[0]);
+ close_fd(_stdin_pipe[1]);
bool success = false;
int ret, status;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-12 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 0:38 [Cluster-devel] conga/ricci common/executils.cpp ricci/Auth.cpp kupcevic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.