aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-21 20:43:01 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-21 20:43:01 +0200
commit16b25c8a426c285c85c24db115c677218d287da9 (patch)
tree7712ef9bc069da7836bcf492edc5ca915d8ceb5e /src/mds-server
parentm info (diff)
downloadmds-16b25c8a426c285c85c24db115c677218d287da9.tar.gz
mds-16b25c8a426c285c85c24db115c677218d287da9.tar.bz2
mds-16b25c8a426c285c85c24db115c677218d287da9.tar.xz
add and use xclose and xfclose, we do not want close or fclose to be ignored because a singal interrupts it.
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-server')
-rw-r--r--src/mds-server/mds-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c
index 99d2be2..801e47c 100644
--- a/src/mds-server/mds-server.c
+++ b/src/mds-server/mds-server.c
@@ -330,7 +330,7 @@ void* slave_loop(void* data)
done:
/* Close socket and free resources. */
- close(slave_fd);
+ xclose(slave_fd);
free(msgbuf);
if (information != NULL)
{