* mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
ReadProcessMemory() error codes that trigger a retry with temporary PAGE_READONLY access. Note that this can occur on NT 4.0.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2003-01-16  Jason Tishler  <jason@tishler.net> | ||||||
|  |  | ||||||
|  | 	* mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of | ||||||
|  | 	ReadProcessMemory() error codes that trigger a retry with temporary | ||||||
|  | 	PAGE_READONLY access.  Note that this can occur on NT 4.0. | ||||||
|  |  | ||||||
| 2003-01-15  Christopher Faylor  <cgf@redhat.com> | 2003-01-15  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* path.cc (normalize_posix_path): Convert win32 path separators to | 	* path.cc (normalize_posix_path): Convert win32 path separators to | ||||||
|   | |||||||
| @@ -986,9 +986,11 @@ fixup_mmaps_after_fork (HANDLE parent) | |||||||
| 					       getpagesize (), NULL)) | 					       getpagesize (), NULL)) | ||||||
| 		      { | 		      { | ||||||
| 			DWORD old_prot; | 			DWORD old_prot; | ||||||
|  | 			DWORD last_error = GetLastError (); | ||||||
|  |  | ||||||
| 			if (GetLastError () != ERROR_PARTIAL_COPY || | 			if (last_error != ERROR_PARTIAL_COPY | ||||||
| 			    !wincap.virtual_protect_works_on_shared_pages ()) | 			    && last_error != ERROR_NOACCESS | ||||||
|  | 			    || !wincap.virtual_protect_works_on_shared_pages ()) | ||||||
| 			  { | 			  { | ||||||
| 			    system_printf ("ReadProcessMemory failed for " | 			    system_printf ("ReadProcessMemory failed for " | ||||||
| 			    		   "MAP_PRIVATE address %p, %E", | 			    		   "MAP_PRIVATE address %p, %E", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user