Move list of semaphores inside semid_ds structure.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-05-24 13:31:44 -04:00
parent 1acec3e7b3
commit db050db01c
7 changed files with 103 additions and 120 deletions
-3
View File
@@ -53,9 +53,6 @@ static inline void __iterate_proc_dirs(int proc_fd)
strcat(absolute_path, "/stat");
// Open the `/proc/<pid>/stat` file.
if ((stat_fd = open(absolute_path, O_RDONLY, 0)) == -1) {
printf("Failed to open `%s`: ", absolute_path);
perror(NULL);
putchar('\n');
continue;
}
// Reset the stat buffer.