From 902997d0976429d2c2acaec0ae0ffb556ae91297 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 3 May 2010 13:59:16 +0100 Subject: [PATCH] fixes --- backends/innduct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/innduct.c b/backends/innduct.c index c5a49c9..15541bd 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -3656,7 +3656,7 @@ int main(int argc, char **argv) { if (!feedfile) feedfile= xasprintf("%s/%s",innconf->pathoutgoing,sitename); else assemble_path(&feedfile, "", "feed filename"); - if (path_cli) path_cli= xasprintf("%s_cli", feedfile); + if (!path_cli) path_cli= xasprintf("%s_cli", feedfile); else assemble_path(&path_cli, "%s_cli", "cli socket path"); if (max_queue_per_ipf<0) @@ -3700,7 +3700,7 @@ int main(int argc, char **argv) { if (child1) _exit(0); pid_t sid= setsid(); - if (sid != child1) sysfatal("setsid failed"); + if (sid == -1) sysfatal("setsid failed"); pid_t child2= xfork("daemonise second fork"); if (child2) _exit(0); -- 2.30.2