diff options
author | 2020-09-03 11:02:17 -0700 | |
---|---|---|
committer | 2020-09-03 11:02:17 -0700 | |
commit | f74f0b7168ed62014cd1de76f6c7da3a1446139c (patch) | |
tree | 55889acc09ae6e25b4901e053975f1cb7a3575dc | |
parent | 1baf553524bbead198336810ae0342c00a2bfb1c (diff) |
Document that ASharedMemory_create fds may or may not be CLOEXEC.
Bug: https://issuetracker.google.com/165667331
Test: treehugger
Change-Id: I0d6c2c4dd4ab48e05734dd89fa3aa10d4a793ed4
-rw-r--r-- | include/android/sharedmem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/android/sharedmem.h b/include/android/sharedmem.h index 6efa4f71cb..5f74682b40 100644 --- a/include/android/sharedmem.h +++ b/include/android/sharedmem.h @@ -65,6 +65,10 @@ extern "C" { * another process. File descriptors may also be sent to other processes over a Unix domain * socket with sendmsg and SCM_RIGHTS. See sendmsg(3) and cmsg(3) man pages for more information. * + * If you intend to share this file descriptor with a child process after + * calling exec(3), note that you will need to use fcntl(2) with FD_SETFD + * to clear the FD_CLOEXEC flag for this to work on all versions of Android. + * * Available since API level 26. * * \param name an optional name. |