Skip to content

Commit e767963

Browse files
rscharfegitster
authored andcommitted
upload-pack: remove superfluous sigchain_pop() call
2997178 (upload-pack: split check_unreachable() in two, prep for get_reachable_list(), 2016-06-12) moved most code of has_unreachable() into the new function do_reachable_revlist(). The latter takes care to ignore SIGPIPE during its operations, and restores the original signal handler before returning. However, a sigchain_pop(SIGPIPE) call remained in the error handling code of has_unreachable(), which does nothing because the stack is empty after do_reachable_revlist() cleaned up after itself. Remove it. Signed-off-by: René Scharfe <[email protected]> Reviewed-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47ae905 commit e767963

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

upload-pack.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,6 @@ static int has_unreachable(struct object_array *src, enum allow_uor allow_uor)
731731
return 0;
732732

733733
error:
734-
sigchain_pop(SIGPIPE);
735734
if (cmd.out >= 0)
736735
close(cmd.out);
737736
return 1;

0 commit comments

Comments
 (0)