• Emmanuel T Odeke's avatar
    runtime: regression test for semasleep indefinite hang · 1b937445
    Emmanuel T Odeke authored
    A regression test in which: for a program that invokes semasleep,
    we send non-terminal signals such as SIGIO.
    Since the signal wakes up pthread_cond_timedwait_relative_np,
    after CL 133655, we should only re-spin for the amount of
    time left, instead of re-spinning with the original duration
    which would cause an indefinite spin.
    
    Updates #27520
    
    Change-Id: I744a6d04cf8923bc4e13649446aff5e42b7de5d8
    Reviewed-on: https://go-review.googlesource.com/135015
    Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarKeith Randall <khr@golang.org>
    1b937445
semasleep_test.go 2.34 KB