mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
e939659b70
This change fixes a bug where signal_latency_async_test would flake less than 1/1000 of the time. What was happening was pthread_kill(sender_thr) would return EFAULT. This was because pthread_create() was not returning the thread object pointer until after clone() had been called. So it was actually possible for the main thread to stall after calling clone() and during that time the receiver would launch and receive a signal from the sender thread, and then fail when it tried to send a pong. I thought I'd use a barrier at first, in the test, to synchronize thread creation, but I firmly believe that pthread_create() was to blame and now that's fixed |
||
---|---|---|
.. | ||
asmexpr | ||
awk1 | ||
awk2 | ||
awk3 | ||
awk4 | ||
awk5 | ||
awk6 | ||
awk7 | ||
awk8 | ||
bf | ||
bloat | ||
explain-deps.py | ||
ezgdb | ||
find-autonomous-objects | ||
fix-third-party.py | ||
flakes | ||
get-deps.py | ||
grep | ||
loc | ||
man2txt | ||
obj | ||
pb | ||
pe | ||
performance | ||
po | ||
powersave | ||
px | ||
re | ||
renameheader | ||
resurrect-file | ||
wut |