Skip to content
  • Petr Baudis's avatar
    Allow diff and index commands to be interrupted · 6a1f79c1
    Petr Baudis authored
    
    
    So far, e.g. git-update-index --refresh was basically uninterruptable
    by ctrl-c, since it hooked the SIGINT handler, but that handler would
    only unlink the lockfile but not actually quit. This makes it propagate
    the signal to the default handler.
    
    Note that I expected it to work without resetting the signal handler to
    SIG_DFL, but without that it ended in an infinite loop of tgkill()s -
    is my glibc violating SUS or what?
    
    Signed-off-by: default avatarPetr Baudis <pasky@suse.cz>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    6a1f79c1