]> granicus.if.org Git - procps-ng/commit
library: extend thread safety to more static variables
authorJim Warner <james.warner@comcast.net>
Fri, 22 Oct 2021 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 25 Oct 2021 10:51:18 +0000 (21:51 +1100)
commitd6e6722fd6dc55d6614ca91caa8369979983c2ca
treee0fe1f76344f5c21d37aec9eecd2f5d273de5746
parentb652c35f7f4d0fe644df4c756ef96cb4fd08a9f8
library: extend thread safety to more static variables

In the commit referenced below, a '__thread' attribute
was added to numerous static variables to protect them
from concurrent access conflicts with multi-threading.

Unfortunately, that patch did not go quite far enough.

So, this commit adds a few more '__thread' qualifiers.

Reference(s):
commit 23cfb7136636f2d522b31417892de79b011ad3e4

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/devname.c
proc/pwcache.c
proc/readproc.c