Skip to content
Snippets Groups Projects
Commit 731ea8fa1f11 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

chg: show debug message for each fd to be closed

It helps debugging. The number of file descriptors should be small in most
cases, so the console output wouldn't get bloated even with CHG_DEBUG=1.
parent 41aaf960dc00
No related branches found
No related tags found
No related merge requests found
......@@ -289,6 +289,7 @@
continue;
}
if (fd_value > STDERR_FILENO) {
debugmsg("closing fd %ld", fd_value);
int res = close(fd_value);
if (res) {
debugmsg("tried to close fd %ld: %d "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment