summaryrefslogtreecommitdiff
path: root/common/array.c
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-10-03 09:42:27 +0200
committerStef Walter <stefw@redhat.com>2014-10-03 21:00:45 +0200
commit0ecc141f372b375ddd2087a8ca406797976f03bf (patch)
treebe66b3488131a7a06a23b4265eabb4197ff87196 /common/array.c
parented0f8e1746008d1868c1dd696b06f0477e4085cf (diff)
downloadp11-kit-0ecc141f372b375ddd2087a8ca406797976f03bf.tar.gz
p11-kit: Use pthread_atfork() in a safe manner
Instead of trying to perform actions in pthread_atfork() which are not async-signal-safe, just increment a counter so we can later tell if the process has forked. Note this does not make it safe to mix threads and forking without immediately execing. This is a far broader problem that p11-kit, however we now do the right thing when fork+exec is used from a thread. https://bugs.freedesktop.org/show_bug.cgi?id=84567
Diffstat (limited to 'common/array.c')
0 files changed, 0 insertions, 0 deletions