• Andrey Vagin's avatar
    zdtm: use tkill instead of kill in sigaltstack · f38fe448
    Andrey Vagin authored
    Each signals should be sent to a proper thread..
    
    Probably it was a reason of a error, which was caught yesterday
    + cat zdtm/live/static/sigaltstack.out
    20:57:10.933:  4380:        thread in sas: at 0x6083e0 (size   0x2000 flags 0x1)
    20:57:10.934:  4380: Waiting in thread SAS
    20:57:11.219:  4380: Thread may leave SAS
    20:57:11.219:  4380: Leaving thread SAS
    20:57:11.219:  4380:        leader in sas: at 0x6083e0 (size   0x2000 flags 0x1)
    20:57:11.219:  4380:             main old: at 0x6063e0 (size   0x2000 flags 0x1)
    20:57:11.220:  4380:             main new: at 0x6083e0 (size   0x2000 flags 0x1)
    20:57:11.220:  4380:             thrd old: at 0x6083e0 (size   0x2000 flags 0x1)
    20:57:11.220:  4380:             thrd new: at 0x6083e0 (size   0x2000 flags 0x1)
    20:57:11.220:  4380: FAIL: sigaltstack.c:163: sas not restored (errno = 11 (Resource temporarily unavailable))
    
    https://bugzilla.openvz.org/show_bug.cgi?id=2668Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    f38fe448
sigaltstack.c 3.33 KB