diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-03 09:18:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-03 09:18:07 +0100 |
commit | f3a112a75effe4ea7dca4d47edeced43fb77691a (patch) | |
tree | 274b70e601e813d1963c778ed238bf4fbd2b711e /upload-pack.c | |
parent | Merge branch 'jk/stop-pack-objects-when-push-is-killed' (diff) | |
parent | upload-pack: kill pack-objects helper on signal or exit (diff) | |
download | git-f3a112a75effe4ea7dca4d47edeced43fb77691a.tar.xz git-f3a112a75effe4ea7dca4d47edeced43fb77691a.zip |
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
Diffstat (limited to 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c index 5dc8e1f844..1006bebd50 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -321,6 +321,7 @@ static void create_pack_file(struct upload_pack_data *pack_data, pack_objects.in = -1; pack_objects.out = -1; pack_objects.err = -1; + pack_objects.clean_on_exit = 1; if (start_command(&pack_objects)) die("git upload-pack: unable to fork git-pack-objects"); |