chiark
/
gitweb
/
~ian
/
inn-innduct.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
eb7754d
)
fixes
author
Ian Jackson
<ian@chiark.greenend.org.uk>
Mon, 3 May 2010 12:59:16 +0000
(13:59 +0100)
committer
Ian Jackson
<ian@chiark.greenend.org.uk>
Mon, 3 May 2010 12:59:16 +0000
(13:59 +0100)
backends/innduct.c
patch
|
blob
|
history
diff --git
a/backends/innduct.c
b/backends/innduct.c
index c5a49c98b27d80a46ef47292e2e61776f5335f12..15541bd2811fc820cde49b3ad6d931fc845a033b 100644
(file)
--- 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 (!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)
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 (child1) _exit(0);
pid_t sid= setsid();
- if (sid
!= child
1) sysfatal("setsid failed");
+ if (sid
== -
1) sysfatal("setsid failed");
pid_t child2= xfork("daemonise second fork");
if (child2) _exit(0);
pid_t child2= xfork("daemonise second fork");
if (child2) _exit(0);