Browse Source

Add a missing fork() error check.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Johannes Sixt 18 years ago committed by Junio C Hamano
parent
commit
f8306418a6
  1. 2
      send-pack.c

2
send-pack.c

@ -25,6 +25,8 @@ static int pack_objects(int fd, struct ref *refs) @@ -25,6 +25,8 @@ static int pack_objects(int fd, struct ref *refs)
if (pipe(pipe_fd) < 0)
return error("send-pack: pipe failed");
pid = fork();
if (pid < 0)
return error("send-pack: unable to fork git-pack-objects");
if (!pid) {
/*
* The child becomes pack-objects --revs; we feed

Loading…
Cancel
Save