aboutsummaryrefslogtreecommitdiff
path: root/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sd.c')
-rw-r--r--sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd.c b/sd.c
index d1e6730..ad67db5 100644
--- a/sd.c
+++ b/sd.c
@@ -14,6 +14,7 @@ if (ioctl(a, b, __VA_ARGS__) < 0) { LOGFV("ioctl(%d, 0x%x): %m", a, b, errno); r
#include <errno.h>
#include <stdlib.h>
#include <limits.h>
+#include <bsd/unistd.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
@@ -81,6 +82,7 @@ static int find_current_tty(void) {
}
static int main_sak(void) {
+ setproctitle("sak");
/* We have to take the ownership here - otherwise SAK will kill the parent. */
if (setsid() == -1) {
LOGFV("Cannot set session ID: %m.", errno);