commit 3e3e3963e49525481a9af8f26597e8a9521e0990 parent 3e0ed8f05be5afa058a9af9fc2f4e9207f6e2968 Author: sin <sin@2f30.org> Date: Mon, 6 Jun 2016 14:58:14 +0100 Don't nuke debug fd Diffstat:
M | ncmixer.c | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ncmixer.c b/ncmixer.c @@ -495,8 +495,13 @@ nuke_fds(void) { int i; - for (i = 3; i < getdtablesize(); i++) + for (i = 3; i < getdtablesize(); i++) { +#ifdef DEBUG + if (i == DEBUG_FD) + continue; +#endif close(i); + } } int