sgx-lkl icon indicating copy to clipboard operation
sgx-lkl copied to clipboard

A futex wait interrupted by a signal returns the wrong errno value (516 vs EINTR)

Open KenGordon opened this issue 4 years ago • 0 comments

The tests tgkill01 and rt_sigqueueinfo01 both fail (maybe requires ethreads > 1) due to a futex wait (see ltp/lib's tst_checkpoint etc) which sets errno to 516 rather than EINTR when wokrn by a signal. At least the tgkill01 test passes if a sleep is used instead of the futex scheme that the ltp provides.

This has caused issue 644 to be repopened and prevents some of the issues under 709 being resolved.

KenGordon avatar Sep 28 '20 15:09 KenGordon