Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!in2.uu.net!gossip.pyramid.com!sun.digidesign.com!netcomsv!uu4news.netcom.com!davsys.com!news.irbs.com!not-for-mail From: jc@irbs.com (John Capo) Newsgroups: comp.unix.bsd.freebsd.misc,news.software.nntp Subject: Re: Shared Memeory patch for INN breaks... Date: 4 Dec 1995 23:55:59 -0500 Organization: IRBS Engineering Lines: 53 Message-ID: <4a0jcv$jab@irbs.irbs.com> References: <49r4pi$5l@gandalf.compumedia.com> <49tcml$efc@atlas.uniserve.com> NNTP-Posting-Host: irbs.irbs.com Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:10227 news.software.nntp:18023 In article <49tcml$efc@atlas.uniserve.com>, Tom Samplonius <tom@uniserve.com> wrote: >In article <49r4pi$5l@gandalf.compumedia.com>, scottm@compumedia.com says... >> >>I have a FreeBSD 2.1 system running INN 4.3unoff3. I applied the shared >>memory patch for nnrpd, and it compiled fine. However, using that version >>of nnrpd, I get an unable to allocate memory error, and the reader is told >>that the server is unavailable at this time. Anyone have any ideas as to >>how to fix this? >> >>-- >>| Scott McDermott >>| System Administrator >>| Compumedia, Inc. > > Does your kernel have shared memory support compiled in? > >Tom > And apply this patch plus check the definition of MAX_ACTIVE_SIZE and MAX_GROUPS. They are too small for news today. *** group.c.almost Mon Nov 27 19:55:12 1995 --- group.c Mon Nov 27 20:04:21 1995 *************** *** 196,202 **** grp.High = gp->High; grp.Low = gp->Low; grp.Flag = gp->Flag; ! strncpy(groupalias, gp->Alias, sizeof(groupalias) - 1); grp.Alias = groupalias; shm_unlock(); return (&grp); --- 196,207 ---- grp.High = gp->High; grp.Low = gp->Low; grp.Flag = gp->Flag; ! ! if (gp->Alias) ! strncpy(groupalias, gp->Alias, sizeof(groupalias) - 1); ! else ! groupalias[0] = '\0'; ! grp.Alias = groupalias; shm_unlock(); return (&grp); John Capo jc@irbs.com IRBS Engineering High performance FreeBSD systems (305) 792-9551 Unix/Internet Consulting - ISP Solutions