diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-05 02:29:45 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-05 02:43:24 +0200 |
commit | 2c32259d535646014dbffb7245a4340f557f6293 (patch) | |
tree | a7a951afe760905531c2cc757cdc495db3ade0fb /src/shell.c | |
parent | 4518f1d2c7bef45148fae8761400f4951d4c0842 (diff) | |
download | fastd-2c32259d535646014dbffb7245a4340f557f6293.tar fastd-2c32259d535646014dbffb7245a4340f557f6293.zip |
Simplify systemd notify socket handling
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 2 |
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); |