summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-01-05 16:04:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-01-05 16:04:21 +0100
commit48ce76c01af56785aeb2fb550d578d992e3394d8 (patch)
treecf70d37034c567fe1b98bf5643f7989fb26becc3
parent35c754cadb623c94b03b819d5ec439f7e40c9a3b (diff)
downloadpacredir-48ce76c01af56785aeb2fb550d578d992e3394d8.tar.gz
pacredir-48ce76c01af56785aeb2fb550d578d992e3394d8.tar.zst
no need to tell systemd the pid
This is required only when the pid is different from what systemd executed itself.
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index afb9e8f..6284a38 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -721,7 +721,7 @@ int main(int argc, char ** argv) {
signal(SIGINT, sig_callback);
/* report ready to systemd */
- sd_notifyf(0, "READY=1\nSTATUS=Waiting for requests to redirect...\nMAINPID=%lu", (unsigned long) getpid());
+ sd_notify(0, "READY=1\nSTATUS=Waiting for requests to redirect...");
/* run the main loop */
avahi_simple_poll_loop(simple_poll);