##// END OF EJS Templates
chg: do not close dir fd while iterating...
Yuya Nishihara -
r46455:9534de20 stable
parent child Browse files
Show More
@@ -288,7 +288,7 b' static void execcmdserver(const struct c'
288 de->d_name);
288 de->d_name);
289 continue;
289 continue;
290 }
290 }
291 if (fd_value > STDERR_FILENO) {
291 if (fd_value > STDERR_FILENO && fd_value != dirfd(dp)) {
292 debugmsg("closing fd %ld", fd_value);
292 debugmsg("closing fd %ld", fd_value);
293 int res = close(fd_value);
293 int res = close(fd_value);
294 if (res) {
294 if (res) {
@@ -298,6 +298,7 b' static void execcmdserver(const struct c'
298 }
298 }
299 }
299 }
300 }
300 }
301 closedir(dp);
301 }
302 }
302
303
303 if (putenv("CHGINTERNALMARK=") != 0)
304 if (putenv("CHGINTERNALMARK=") != 0)
General Comments 0
You need to be logged in to leave comments. Login now