diff options
author | Mattias Andrée <maandree@kth.se> | 2024-09-22 11:22:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-09-22 11:22:38 +0200 |
commit | f02bdf3ceaf245982728722a2c3eced750c511a1 (patch) | |
tree | 466996a7eb7ce8d8a349fe3b2334d13df692e5b0 /get_stack_space.c | |
parent | m whitespace (diff) | |
download | libsimple-f02bdf3ceaf245982728722a2c3eced750c511a1.tar.gz libsimple-f02bdf3ceaf245982728722a2c3eced750c511a1.tar.bz2 libsimple-f02bdf3ceaf245982728722a2c3eced750c511a1.tar.xz |
m1.7
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | get_stack_space.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_stack_space.c b/get_stack_space.c index 5e54aac..bb0d92b 100644 --- a/get_stack_space.c +++ b/get_stack_space.c @@ -12,7 +12,7 @@ libsimple_get_stack_space(uintptr_t *restrict low, uintptr_t *restrict high) size_t off = 0; size_t lineoff, linelen; - fd = open("/proc/self/maps", O_RDONLY); + fd = open("/proc/thread-self/maps", O_RDONLY); if (fd < 0) return -1; |