uClibc can't handle anonymous MAP_SHARED. Since we're treating it as
authorRob Landley <rob@landley.net>
Wed, 7 Dec 2005 22:45:28 +0000 (22:45 -0000)
committerRob Landley <rob@landley.net>
Wed, 7 Dec 2005 22:45:28 +0000 (22:45 -0000)
read only data anyway, MAP_PRIVATE shouldn't make a major difference.

modutils/insmod.c

index da149fe2b649e8a7ea6a17b074d2cd17c7a6bc32..bf96a5633da9d8d20e4be2cdfa1c7e21eeb9b121 100644 (file)
@@ -4128,7 +4128,7 @@ extern int insmod_ng_main( int argc, char **argv)
 
        fstat(fd, &st);
        len = st.st_size;
-       map = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0);
+       map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
        if (map == MAP_FAILED) {
                bb_perror_msg_and_die("cannot mmap `%s'", filename);
        }