aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-rm.c')
-rw-r--r--src/satd-rm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/satd-rm.c b/src/satd-rm.c
index 58b9eed..4feb93a 100644
--- a/src/satd-rm.c
+++ b/src/satd-rm.c
@@ -42,6 +42,8 @@ main(int argc, char *argv[])
char **arg;
int rc = 0;
+ t (reopen(STATE_FILENO, O_RDRW));
+
/* Receive and validate message. */
t (readall(SOCK_FILENO, &message, &n) || !n || message[n - 1]);
shutdown(SOCK_FILENO, SHUT_RD);