diff --git a/src/shm.jl b/src/shm.jl index 2f14879..53c7810 100644 --- a/src/shm.jl +++ b/src/shm.jl @@ -137,7 +137,7 @@ function SharedMemory(name::AbstractString, else # Get the size of the existing shared memory object. try - nbytes = Int(filesize(fd)) + nbytes = Int(filesize(RawFD(fd))) catch err _close(fd) rethrow(err)