[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] could not hand over lockfile to child



Jan Knutar wrote:
> 
> 
> Aug 30 21:20:20 polaris fetchnews[23236]: Last LIST done 2437394 seconds ago: NEWGROUPS
> Aug 30 21:20:21 polaris fetchnews[23236]: <200 bowmore.utu.fi InterNetNews NNRP server INN 2.3.1 ready (posting ok).
> Aug 30 21:20:21 polaris fetchnews[23236]: connected to 130.232.1.14:119, reply: 200
> Aug 30 21:20:21 polaris fetchnews[23236]: >MODE READER
> Aug 30 21:20:21 polaris fetchnews[23236]: <200 bowmore.utu.fi InterNetNews NNRP server INN 2.3.1 ready (posting ok).
> Aug 30 21:20:21 polaris fetchnews[23236]: news.utu.fi: 0 articles posted
> Aug 30 21:20:21 polaris fetchnews[23236]: >QUIT
> Aug 30 21:20:21 polaris fetchnews[23236]: could not hand over lockfile to child: No such file or directory, waiting until child is done.
> Aug 30 21:20:21 polaris fetchnews[23237]: Process forked.
> 
> /.../
> In any case, I wonder what prevents fetchnews from posting,

I use to suppress the ID line before posting to my upstream server.
Fetchnews (since 1.9.22 at least) skips SILENTLY posts without ID line.
If you are suppressing the ID line like me, try this patch:

*** 1403,1412 ****
            printf("Unable to stat %s: %s\n", de->d_name, strerror(err));
        } else if (S_ISREG(st.st_mode) &&
                   ((f = fopen(de->d_name, "r")) != NULL) &&
!                  ((p = fgetheader(f, "Newsgroups:")) != NULL) &&
!                  (isgrouponserver(p)) &&
!                  ((q = fgetheader(f, "Message-ID:")) != NULL) &&
!                  ((haveid = ismsgidonserver(q)) != 1)) {
            if (verbose > 2)
                printf("Posting %s...\n", de->d_name);
            syslog(LOG_INFO, "Posting %s...", de->d_name);
--- 1549,1557 ----
            printf("Unable to stat %s: %s\n", de->d_name, strerror(err));
        } else if (S_ISREG(st.st_mode) &&
                   ((f = fopen(de->d_name, "r")) != NULL) &&
!                  (isgrouponserver(fgetheader(f, "Newsgroups:" ))) &&
!                  (( haveid = ismsgidonserver( fgetheader(
f,"Message-ID:")))
!                     != 1)) {
            if (verbose > 2)
                printf("Posting %s...\n", de->d_name);
            syslog(LOG_INFO, "Posting %s...", de->d_name);

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list