Skip to content
  • Jeff King's avatar
    t0005: use SIGTERM for sigchain test · 0ea80396
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The signal tests consists of checking that each of our
    handlers is executed, and that the test program was killed
    by the final signal. We arbitrarily used SIGINT as the kill
    signal.
    
    However, some platforms (notably Solaris) will default
    SIGINT to SIG_IGN if there is no controlling terminal. In
    that case, we don't end up killing the program with the
    final signal and the test fails.
    
    This is a problem since the test script should not depend
    on outside factors; let's use SIGTERM instead, which should
    behave consistently.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0ea80396