aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-add.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 20:34:50 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 20:34:50 +0100
commit4e8a81872679c3f01c344451da839523b8640f0f (patch)
tree7433b3753f484bf72ce0f2e913a8807feaf154e7 /src/satd-add.c
parentm + receive messages (diff)
downloadsat-4e8a81872679c3f01c344451da839523b8640f0f.tar.gz
sat-4e8a81872679c3f01c344451da839523b8640f0f.tar.bz2
sat-4e8a81872679c3f01c344451da839523b8640f0f.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/satd-add.c')
-rw-r--r--src/satd-add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/satd-add.c b/src/satd-add.c
index f7f2554..e143c00 100644
--- a/src/satd-add.c
+++ b/src/satd-add.c
@@ -43,6 +43,7 @@ main(int argc, char *argv[])
/* Receive and validate message. */
t (readall(SOCK_FILENO, &message, &n));
+ shutdown(SOCK_FILENO, SHUT_RD);
t (n < sizeof(int) + sizeof(clk) + sizeof(ts));
n -= sizeof(int) + sizeof(clk) + sizeof(ts);
msg_argc = *(int *)(message + n);