diff options
author | Gedare Bloom <gedare@rtems.org> | 2017-03-15 14:31:00 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2017-05-05 10:34:08 -0400 |
commit | 87de70a2984cece87db94f4b445589c4e24e5c77 (patch) | |
tree | 945d211b09e3b7714a2bba6d06ceae7a601d4116 /cpukit/posix/src/shmunlink.c | |
parent | posix: Add mmap/unmap support for mapping files. (diff) | |
download | rtems-87de70a2984cece87db94f4b445589c4e24e5c77.tar.bz2 |
posix/mman: add mmap support for shm objects
Update #2859.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/shmunlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/shmunlink.c b/cpukit/posix/src/shmunlink.c index ab18450dc7..f81e234413 100644 --- a/cpukit/posix/src/shmunlink.c +++ b/cpukit/posix/src/shmunlink.c @@ -40,8 +40,8 @@ int shm_unlink( const char *name ) default: _Objects_Close( &_POSIX_Shm_Information, &shm->Object ); if ( shm->reference_count == 0 ) { - /* TODO: need to make sure this counts mmaps too! */ - /* only remove the shm object if no references exist to it. */ + /* Only remove the shm object if no references exist to it. Otherwise, + * the shm object will be freed later in _POSIX_Shm_Attempt_delete */ _POSIX_Shm_Free( shm ); } break; |