diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-06-21 02:15:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-06-21 02:15:50 -0400 |
commit | 8ed2bd8bfcb4ea6448afb55a941f4b5b2b0398c0 (patch) | |
tree | 5f3e5a115873b05aadf78ff3a5590ffd3a0fa9ca /src/string/wcpcpy.c | |
parent | only use memcpy realloc to shrink if an exact-sized free chunk exists (diff) | |
download | grovel-8ed2bd8bfcb4ea6448afb55a941f4b5b2b0398c0.tar.gz grovel-8ed2bd8bfcb4ea6448afb55a941f4b5b2b0398c0.tar.xz |
clear need_locks in child after fork
the child is single-threaded, but may still need to synchronize with
last changes made to memory by another thread in the parent, so set
need_locks to -1 whereby the next lock-taker will drop to 0 and
prevent further barriers/locking.
Diffstat (limited to 'src/string/wcpcpy.c')
0 files changed, 0 insertions, 0 deletions