Skip to content

Commit

Permalink
add close() in get_scratch_pg to avoid fd pileup
Browse files Browse the repository at this point in the history
  • Loading branch information
e-arlo-be committed Apr 5, 2023
1 parent 96a534c commit 333c9ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/L2/sym_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,5 +347,6 @@ uint64_t get_scratch_pg(int core){
read(fd, pg_ptr, 100);

scratch_pg = strtoull(pg_ptr, NULL, 0);
close(fd);
return scratch_pg;
}

0 comments on commit 333c9ea

Please sign in to comment.