NNTPCACHE patch for mmap

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

 



----- Forwarded message from Marian Durkovic -----

From: Marian Durkovic <marian@svf.stuba.sk>
Message-Id: <199710071557.RAA09600@us.svf.stuba.sk>
Subject: NNTPCACHE patch pre reboot
To: sanet-op@sanet.sk
Date: Tue, 7 Oct 1997 17:57:03 +0200 (METDST)
X-Mailer: ELM [version 2.4ME+ PL31 (25)]
Precedence: list
Errors-To: emil@elf.stuba.sk
Reply-To: sanet-op@sanet.sk
X-Sequence: 986

Hello,


   I've corrected the wrong part of the MMAP code, which caused that
memory mapped file was never used (and all internal structures of
NNTPCACHED were lost after reboot). There were some typos in
nntpcache.c. You'll find the patch below, however, it must be applied 
after the nntpcache-1.0.7.1.p1.patch.


BTW, what about releasing nntpcache 1.0.7.2 ? :-)


	Regards,


		Marian
   

		M.

---------------------------------------------------------------------------
----                                                                   ----
----   Marian Durkovic                        network  manager         ----
----                                                                   ----
----   Slovak Technical University            Phone: + 421 7 3596-666  ----
----   Computer Centre, Nam. Slobody 17       Fax:   + 421 7 394-351   ----
----   812 43 Bratislava, Slovak Republic     E-mail: marian@bts.sk    ----
----                                                                   ----
---------------------------------------------------------------------------


nntpcache-1.0.7.1.p3.patch:

--- ../nntpcache-1.0.7.1/nntpcache.c    Tue Oct  7 17:42:45 1997
+++ nntpcache.c Tue Oct  7 17:37:02 1997
@@ -551,14 +551,14 @@
        bool f_anon =

 #if defined(HAVE_MMAP_ANON)
-#  ifdef MMAP_FILE
-               con.anonMmap? TRUE: FLASE
+#  ifdef HAVE_MMAP_FILE
+               con.anonMmap? TRUE: FALSE
 #  else
                TRUE
 #  endif
 #else
 #if defined(HAVE_MMAP_DEV_ZERO)
-#  ifdef MMAP_FILE
+#  ifdef HAVE_MMAP_FILE
                con.anonMmap? TRUE: FALSE
 #  else
                TRUE



[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux