From: Philippe E. <ph...@us...> - 2002-11-14 15:43:37
|
Update of /cvsroot/oprofile/oprofile/libdb In directory usw-pr-cvs1:/tmp/cvs-serv10146/libdb Modified Files: db-manage.c Log Message: oops sorry revert this, it was not intended to be commited regards, Phil Index: db-manage.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/libdb/db-manage.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- db-manage.c 14 Nov 2002 15:41:23 -0000 1.13 +++ db-manage.c 14 Nov 2002 15:43:33 -0000 1.14 @@ -117,8 +117,7 @@ tree->base_memory = mmap(0, (nr_page * sizeof(db_page_t)) + tree->offset_page, -// mmflags, MAP_SHARED, tree->fd, 0); - mmflags, (rw == DB_RDWR) ? MAP_SHARED : MAP_PRIVATE, tree->fd, 0); + mmflags, MAP_SHARED, tree->fd, 0); if (tree->base_memory == MAP_FAILED) { fprintf(stderr, "db_add_page() mmap failure " |