From 2c32259d535646014dbffb7245a4340f557f6293 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 5 Jun 2014 02:29:45 +0200 Subject: Simplify systemd notify socket handling --- src/shell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shell.c') diff --git a/src/shell.c b/src/shell.c index 076c4c8..a90d58b 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,8 @@ void fastd_shell_env_free(fastd_shell_env_t *env) { static void shell_command_setenv(pid_t pid, const fastd_shell_env_t *env) { char buf[20]; + unsetenv("NOTIFY_SOCKET"); + snprintf(buf, sizeof(buf), "%u", (unsigned)pid); setenv("FASTD_PID", buf, 1); -- cgit v1.2.3