commit | 902be4ab7d57242feffc6b631cff1b953a7f95c9 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Wed Oct 01 20:45:26 2008 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Oct 01 21:13:46 2008 -0400 |
tree | d3fbb76ee262e3595561ec7fa028320da126706e | |
parent | 0f589a4d5701b0cc95d90685f8cbbdc66a7be3a6 [diff] |
libcom_err: Fix file descriptor leak after an exec Some applications repeatedly re-exec themselves, and if they use the com_err library, they can leak a file descriptor for each re-exec. Fix this by setting the close-on-exec flag on the debug file descriptor. In addition, if the COMERR_DEBUG environment variable isn't set, don't open the file handle at all. Addresses-Red-Hat-Bugzilla: #464689 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>