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);
}