From 48ce76c01af56785aeb2fb550d578d992e3394d8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 5 Jan 2017 16:04:21 +0100 Subject: no need to tell systemd the pid This is required only when the pid is different from what systemd executed itself. --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf