Merge pull request #140 from rust-windowing/redox-map-shared

orbital: Use `syscall::MAP_SHARED` for mapping
This commit is contained in:
Jeremy Soller 2023-08-16 20:24:44 -06:00 committed by GitHub
commit 2e926b37e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ impl OrbitalMap {
&syscall::Map {
offset: 0,
size,
flags: syscall::PROT_READ | syscall::PROT_WRITE,
flags: syscall::PROT_READ | syscall::PROT_WRITE | syscall::MAP_SHARED,
address: 0,
},
)?