tree-wide: use parse_fd()

This commit is contained in:
David Tardon
2023-05-05 09:10:56 +02:00
parent 754d8b9c33
commit e652663a04
11 changed files with 46 additions and 47 deletions
+2 -1
View File
@@ -416,7 +416,8 @@ int close_all_fds(const int except[], size_t n_except) {
if (!IN_SET(de->d_type, DT_LNK, DT_UNKNOWN))
continue;
if (safe_atoi(de->d_name, &fd) < 0)
fd = parse_fd(de->d_name);
if (fd < 0)
/* Let's better ignore this, just in case */
continue;