]> granicus.if.org Git - procps-ng/commit
top: tweak end-of-job processing if invoked via signal
authorJim Warner <james.warner@comcast.net>
Thu, 16 Sep 2021 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 20 Sep 2021 10:05:44 +0000 (20:05 +1000)
commit1d1c1b84dfcd1d61631be4c312bcf7aaf216ddc6
tree22589f1eac2222610c278869d8e3e5b8a29eb7fd
parent6049c13b4d9c26d20fd62899cca4e4525ba1b906
top: tweak end-of-job processing if invoked via signal

The master branch top is pretty well insulated against
signal-unsafe function calls during end-of-job action.

However, this newlib branch top had exposed himself to
a bunch of such unsafe activity in the form of 'unref'
function calls to the new library. In those guys there
will be several 'free' invocations which are not safe.

So, this commit will simply correct such an oversight.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c