]> granicus.if.org Git - procps-ng/commit
pmap: Don't reopen stdin for reading file
authorCraig Small <csmall@dropbear.xyz>
Tue, 26 Apr 2022 11:18:03 +0000 (21:18 +1000)
committerCraig Small <csmall@dropbear.xyz>
Tue, 26 Apr 2022 11:18:03 +0000 (21:18 +1000)
commit1f085f5a9f036625696bfa370779232f8f0b769c
tree4cd1e4a783d7885da737ee2a45f7499f832d2a79
parent581ed4bcab4e48e4711012c6a3f81ad292749f02
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>
NEWS
pmap.c