pmap: Don't reopen stdin for reading file

pmap uses freopen to read /proc/self/maps. There doesn't
seem to be a good reason to do this and if pmap has its
stdin previously closed then it fails.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Craig Small
2022-04-26 21:18:03 +10:00
parent 581ed4bcab
commit 1f085f5a9f
2 changed files with 8 additions and 2 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
procps-ng-NEXT
* library
Re-add elogind support merge #151
* pmap: Dont reuse stdin filehandle issue #231
* ps: threads again display when -L is used with -q issue #234
* ps: proper aix format string behavior was restored
* sysctl: print dotted keys again