(mmap_enlarge): Don't print a message on stderr
authorGerd Moellmann <gerd@gnu.org>
Sat, 18 Nov 2000 15:51:00 +0000 (15:51 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 18 Nov 2000 15:51:00 +0000 (15:51 +0000)
if mapping new memory at the end of the existing region fails.

src/ChangeLog
src/buffer.c

index f7fef12..0146a54 100644 (file)
@@ -1,5 +1,8 @@
 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
 
+       * buffer.c (mmap_enlarge): Don't print a message on stderr
+       if mapping new memory at the end of the existing region fails.
+
        * dispnew.c (update_text_area): Don't skip over equal glyphs
        when the last current glyph overlaps the glyph to its right.
 
index ae04d7a..1e31c93 100644 (file)
@@ -4275,7 +4275,7 @@ mmap_enlarge (r, npages)
          p = mmap (region_end, nbytes, PROT_READ | PROT_WRITE,
                    MAP_ANON | MAP_PRIVATE | MAP_FIXED, mmap_fd, 0);
          if (p == MAP_FAILED)
-           fprintf (stderr, "mmap: %s\n", emacs_strerror (errno));
+           ; /* fprintf (stderr, "mmap: %s\n", emacs_strerror (errno)); */
          else if (p != (POINTER_TYPE *) region_end)
            {
              /* Kernels are free to choose a different address.  In