* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "config.h"
+#include <config.h>
/* Must be loaded before the following headers. */
#include "ldpreload.h"
if (!initialized) {
init_from_environment();
}
+ if (tracked_fds_count == 0) {
+ return 0;
+ }
/* Never touch anything not going to a terminal - unless we are explicitly
* asked to do so. */
return 0;
}
- if (tracked_fds_count == 0) {
- return 0;
- }
return tracked_fds_find(fd);
}
if (!initialized) {
init_from_environment();
}
-
if (tracked_fds_count == 0) {
return;
}
+
tracked_fds_remove(fd);
}