Re: [PATCH 1/5] Change git_connect() to return a struct child_process instead of a pid_t.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Sixt <j.sixt@...>
Cc: Johannes Sixt <johannes.sixt@...>, <git@...>
Date: Tuesday, October 2, 2007 - 1:54 pm

Johannes Sixt <j.sixt@viscovery.net> writes:


Ah, I somehow got confused and thought that the caller decides
not to do the waitpid business at the end of the connection, but
as everybody calls finish_connect() with what it got from
git_connect(), as long as the fake "child_process" structure
records something to let finish_connect() know that it should
not waitpid() on the process, all is well.

It might make sense to teach finish_command() that a magic value
of (cmd->pid == 0) means there is no process to wait for and
this "child_process" structure is only about the in/out stream
to the other side.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/5] Change git_connect() to return a struct chil..., Junio C Hamano, (Tue Oct 2, 1:54 pm)
[PATCH 0/5, resend] fork/exec removal series, Johannes Sixt, (Wed Oct 3, 4:09 pm)