Add a missing fork() error check.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
1732a1fd94
commit
f8306418a6
@ -25,6 +25,8 @@ static int pack_objects(int fd, struct ref *refs)
|
|||||||
if (pipe(pipe_fd) < 0)
|
if (pipe(pipe_fd) < 0)
|
||||||
return error("send-pack: pipe failed");
|
return error("send-pack: pipe failed");
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
if (pid < 0)
|
||||||
|
return error("send-pack: unable to fork git-pack-objects");
|
||||||
if (!pid) {
|
if (!pid) {
|
||||||
/*
|
/*
|
||||||
* The child becomes pack-objects --revs; we feed
|
* The child becomes pack-objects --revs; we feed
|
||||||
|
Reference in New Issue
Block a user