aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-add.c')
-rw-r--r--src/satd-add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/satd-add.c b/src/satd-add.c
index e143c00..497e32d 100644
--- a/src/satd-add.c
+++ b/src/satd-add.c
@@ -41,6 +41,8 @@ main(int argc, char *argv[])
int msg_argc;
char **msg = NULL;
+ t (reopen(STATE_FILENO, O_RDRW));
+
/* Receive and validate message. */
t (readall(SOCK_FILENO, &message, &n));
shutdown(SOCK_FILENO, SHUT_RD);