diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-30 03:32:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-30 03:32:38 +0100 |
commit | 65e7bc18a9a7b89e55b87a74ae47d45269b51847 (patch) | |
tree | b9f58d76a78ecc0c03557bf7a7dad14cf28e15f9 /src/pulsecore/cpu-arm.c | |
parent | 9c1a98953f25aff7f11af80a073c9c46dee2438c (diff) |
use cloexec wrappers wherever applicable
Diffstat (limited to 'src/pulsecore/cpu-arm.c')
-rw-r--r-- | src/pulsecore/cpu-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/cpu-arm.c b/src/pulsecore/cpu-arm.c index 453b7848..6bb2eadd 100644 --- a/src/pulsecore/cpu-arm.c +++ b/src/pulsecore/cpu-arm.c @@ -62,7 +62,7 @@ static char *get_cpuinfo(void) { cpuinfo = pa_xmalloc(MAX_BUFFER); - if ((fd = open("/proc/cpuinfo", O_RDONLY)) < 0) { + if ((fd = pa_open_cloexec("/proc/cpuinfo", O_RDONLY, 0)) < 0) { pa_xfree(cpuinfo); return NULL; } |