summaryrefslogtreecommitdiff
path: root/src/jni/rtp/AudioGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jni/rtp/AudioGroup.cpp')
-rw-r--r--src/jni/rtp/AudioGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jni/rtp/AudioGroup.cpp b/src/jni/rtp/AudioGroup.cpp
index 5f9cae8..9efd11a 100644
--- a/src/jni/rtp/AudioGroup.cpp
+++ b/src/jni/rtp/AudioGroup.cpp
@@ -1078,7 +1078,7 @@ JNINativeMethod gMethods[] = {
int registerAudioGroup(JNIEnv *env)
{
- gRandom = open("/dev/urandom", O_RDONLY);
+ gRandom = open("/dev/urandom", O_RDONLY | O_CLOEXEC);
if (gRandom == -1) {
ALOGE("urandom: %s", strerror(errno));
return -1;