Dear diary, on Tue, Jun 20, 2006 at 05:11:40AM CEST, I got a letter where Junio C Hamano <junkio@xxxxxxx> said that... > diff --git a/connect.c b/connect.c > index 52d709e..db7342e 100644 > --- a/connect.c > +++ b/connect.c > @@ -581,6 +581,11 @@ int git_connect(int fd[2], char *url, co > enum protocol protocol = PROTO_LOCAL; > int free_path = 0; > > + /* Without this we cannot rely on waitpid() to tell > + * what happened to our children. > + */ > + signal(SIGCHLD, SIG_DFL); > + > host = strstr(url, "://"); > if(host) { > *host = '\0'; It would be nice if at this point of Git development we could already think about libification when doing things like this (I'd like to do Git.pm as my little summer project this year). I'd make it part of the API that the calling application must not defer SIGCHLD, and conversely put the handler to all the main()s that reach git_connect(). -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ A person is just about as big as the things that make them angry. - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html