aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 05:48:24 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 05:48:24 +0100
commitd137d129e75247575530d8a8310778b70f2c13ea (patch)
treee1d908de1dc78522c6eab2755b8d30da537f1b55
parentimpelement satd-add (diff)
downloadsat-d137d129e75247575530d8a8310778b70f2c13ea.tar.gz
sat-d137d129e75247575530d8a8310778b70f2c13ea.tar.bz2
sat-d137d129e75247575530d8a8310778b70f2c13ea.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r--src/satd-add.c1
-rw-r--r--src/satd-list.c1
-rw-r--r--src/satd-rm.c1
-rw-r--r--src/satd-run.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/satd-add.c b/src/satd-add.c
index 0fec460..5a5e004 100644
--- a/src/satd-add.c
+++ b/src/satd-add.c
@@ -87,6 +87,7 @@ done:
/* Cleanup. */
shutdown(SOCK_FILENO, SHUT_WR);
close(SOCK_FILENO);
+ close(STATE_FILENO);
free(message);
free(job);
return rc;
diff --git a/src/satd-list.c b/src/satd-list.c
index ee11c3a..29175c9 100644
--- a/src/satd-list.c
+++ b/src/satd-list.c
@@ -267,6 +267,7 @@ done:
/* Cleanup. */
shutdown(SOCK_FILENO, SHUT_WR);
close(SOCK_FILENO);
+ close(STATE_FILENO);
for (job = jobs; *job; job++)
free(*job);
free(jobs);
diff --git a/src/satd-rm.c b/src/satd-rm.c
index 010f795..f245a1f 100644
--- a/src/satd-rm.c
+++ b/src/satd-rm.c
@@ -58,6 +58,7 @@ done:
/* Cleanup. */
shutdown(SOCK_FILENO, SHUT_WR);
close(SOCK_FILENO);
+ close(STATE_FILENO);
free(msg_argv);
free(message);
return rc;
diff --git a/src/satd-run.c b/src/satd-run.c
index 1af4834..1b92558 100644
--- a/src/satd-run.c
+++ b/src/satd-run.c
@@ -66,6 +66,7 @@ done:
/* Cleanup. */
shutdown(SOCK_FILENO, SHUT_WR);
close(SOCK_FILENO);
+ close(STATE_FILENO);
free(msg_argv);
free(message);
return rc;