summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c2
1 files changed, 2 insertions, 0 deletions
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);