diff options
Diffstat (limited to 'sd.c')
-rw-r--r-- | sd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |