diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-08-17 10:31:15 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-08-17 10:31:15 -0400 |
commit | c5305d88c7dc519edfaf55eed8d026a9038d7978 (patch) | |
tree | 2c999d13ecdcf2e37323a1e81b4ce5eed96eb0ef /elf/pldd.c | |
parent | Prevent possible race conditions by attaching pldd to all threads (diff) | |
download | glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.tar.gz glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.tar.bz2 glibc-c5305d88c7dc519edfaf55eed8d026a9038d7978.zip |
Fix some problem of 32-bit pldd on 64-bit platforms
Diffstat (limited to 'elf/pldd.c')
-rw-r--r-- | elf/pldd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/pldd.c b/elf/pldd.c index ef3621c624..29879f7e85 100644 --- a/elf/pldd.c +++ b/elf/pldd.c @@ -274,7 +274,7 @@ get_process_info (int dfd, long int pid) auxv_size += 512; auxv = xrealloc (auxv, auxv_size); - ssize_t n = read (fd, auxv, auxv_size); + ssize_t n = pread (fd, auxv, auxv_size, 0); if (n < 0) goto no_info; if (n < auxv_size) |