aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/satd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/satd.c b/src/satd.c
index 74b190f..a5b09ff 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -218,10 +218,9 @@ main(int argc, char *argv[])
/* Daemonise. */
t (foreground ? 0 : daemonise("satd", DAEMONISE_KEEP_FDS, sock, -1));
- close(sock);
- unlink(address.sun_path);
- undaemonise();
- return 0;
+ /* Change to a process image without all this initialisation text. */
+ execl(LIBEXEC "/" PACKAGE "/satd-diminished", argv0,
+ address.sun_path, getenv("SAT_HOOK_PATH"), NULL);
fail:
if (errno)