X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=backends%2Finnduct.c;h=af192db149f7952e768315f6d9d35e9de400935e;hp=005df921d90ec2ecf0fabd4fbb51ee6f86fd70a0;hb=d7ba9ad0331fdc53b900e09e73e05c3230eb6763;hpb=55f4f72edbae3d5d9b96ca0fabdd745300373a51 diff --git a/backends/innduct.c b/backends/innduct.c index 005df92..af192db 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: @@ -560,7 +564,7 @@ static void logv(int sysloglevel, const char *pfx, int errnoval, const char *fmt, va_list al) PRINTF(5,0); static void logv(int sysloglevel, const char *pfx, int errnoval, const char *fmt, va_list al) { - char msgbuf[256]; /* NB do not call xvasprintf here or you'll recurse */ + char msgbuf[1024]; /* NB do not call xvasprintf here or you'll recurse */ vsnprintf(msgbuf,sizeof(msgbuf), fmt,al); msgbuf[sizeof(msgbuf)-1]= 0; @@ -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();