X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=backends%2Finnduct.c;h=853a25c37b628f850f076d2e179af8f856b8b039;hp=005df921d90ec2ecf0fabd4fbb51ee6f86fd70a0;hb=cb7fbb09e728227055ebf1de24bfb696656b0891;hpb=2d0b3a5aef1092b55a34bb7e16d8bdcb3415a0be diff --git a/backends/innduct.c b/backends/innduct.c index 005df92..853a25c 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -23,6 +23,10 @@ * with GPLv3. If not then please let me know. -Ian Jackson.) */ +/* + * todo + * specify perms of /tmp/innduct.control + */ /* * debugging rune: @@ -3331,6 +3335,7 @@ static void dump_input_file(FILE *f, const ControlCommand *c, DUMPV("%d", ipf->,readcount_ok); DUMPV("%d", ipf->,readcount_blank); DUMPV("%d", ipf->,readcount_err); + DUMPV("%d", ipf->,count_nooffer_missing); } fprintf(f,"\n"); if (ipf) { @@ -3758,6 +3763,10 @@ int main(int argc, char **argv) { notice("starting"); + int val= 1; + r= SMsetup(SM_PREOPEN, &val); if (!r) warn("SMsetup SM_PREOPEN failed"); + r= SMinit(); if (!r) die("storage manager initialisation (SMinit) failed"); + if (!become_daemon) control_stdio();