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: Monday, October 1, 2007 - 4:39 am

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


In any case, I'd rather first have one that hides fork/exec
behind child_process first without changing the call to die() in
git_connect() in this round.  I am still in "post feature
release clean-up" mood ;-)

As to error indication, it somehow does not feel right to return
something called "child _process_" structure when we want to
tell the caller that there is no process to wait for in the
no-error case, although the fact that we can use .in/.out fd in
the structure when we _do_ have child process is attractive.

As an alternative, we could keep the "NULL return means there
was no need to fork" semantics of git_connect(), and instead add
"int *status_ret" parameter for the caller to check.
-
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, (Mon Oct 1, 4:39 am)
[PATCH 0/5, resend] fork/exec removal series, Johannes Sixt, (Wed Oct 3, 4:09 pm)