aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-28 01:31:31 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-28 01:31:31 +0200
commit82a6868991472fc0b95981c3f116f5583254fa06 (patch)
tree9db3c2d8f43628985db81ff5915581b21d925869
parentc2d178d0f089d4d5f9758de5bb2b8a39a4857f27 (diff)
downloadblogc-82a6868991472fc0b95981c3f116f5583254fa06.tar.gz
blogc-82a6868991472fc0b95981c3f116f5583254fa06.tar.bz2
blogc-82a6868991472fc0b95981c3f116f5583254fa06.zip
make: close fds after copying static files
-rw-r--r--src/blogc-make/exec-native.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blogc-make/exec-native.c b/src/blogc-make/exec-native.c
index 179216a..0f5f7b8 100644
--- a/src/blogc-make/exec-native.c
+++ b/src/blogc-make/exec-native.c
@@ -84,6 +84,9 @@ bm_exec_native_cp(bm_filectx_t *source, bm_filectx_t *dest, bool verbose)
} while (nread > 0);
}
+ close(fd_from);
+ close(fd_to);
+
return 0;
}