HomePhabricator

chg: do not close dir fd while iterating

Authored by yuja.

Description

chg: do not close dir fd while iterating

It works so long as the dp is the last entry, but readdir(dp) would fail
with EBADF. Let's not do that and close the dir fd explicitly.

Details

Committed
yujaNov 2 2020, 9:15 PM
Parents
rHG731ea8fa1f11: chg: show debug message for each fd to be closed
Branches
Unknown
Tags
Unknown