Skip to content

Commit f3a112a

Browse files
committed
Merge branch 'jk/stop-pack-objects-when-fetch-is-killed'
"git fetch" that is killed may leave a pack-objects process behind, still computing to find a good compression, wasting cycles. This has been corrected. * jk/stop-pack-objects-when-fetch-is-killed: upload-pack: kill pack-objects helper on signal or exit
2 parents adae5df + 309a402 commit f3a112a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

upload-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ static void create_pack_file(struct upload_pack_data *pack_data,
321321
pack_objects.in = -1;
322322
pack_objects.out = -1;
323323
pack_objects.err = -1;
324+
pack_objects.clean_on_exit = 1;
324325

325326
if (start_command(&pack_objects))
326327
die("git upload-pack: unable to fork git-pack-objects");

0 commit comments

Comments
 (0)