diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2009-10-07 22:53:19 -0400 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-10-16 11:42:04 -0700 |
| commit | ca50357830359d2f1d41ce8ba768a1b4fa50f3a4 (patch) | |
| tree | a900c5bc30434aaa5619eab137a2f5090372a34a | |
| parent | b64182025763b4c47eacfe59ea8c0f6c3714ae72 (diff) | |
| download | uClibc-alpine-ca50357830359d2f1d41ce8ba768a1b4fa50f3a4.tar.bz2 uClibc-alpine-ca50357830359d2f1d41ce8ba768a1b4fa50f3a4.tar.xz | |
ldso: use O_CLOEXEC for cache file
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| -rw-r--r-- | ldso/ldso/dl-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index d1cf2d771..e4086d5e9 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -51,7 +51,7 @@ int _dl_map_cache(void) return 0; if (_dl_stat(LDSO_CACHE, &st) - || (fd = _dl_open(LDSO_CACHE, O_RDONLY, 0)) < 0) { + || (fd = _dl_open(LDSO_CACHE, O_RDONLY|O_CLOEXEC, 0)) < 0) { _dl_cache_addr = MAP_FAILED; /* so we won't try again */ return -1; } |
