From: Alex Riesen <raa.lkml@gmail.com>
To: Tim Henigan <tim.henigan@gmail.com>
Cc: David Aguilar <davvid@gmail.com>, gitster@pobox.com, git@vger.kernel.org
Subject: Re: [PATCH 6/9] difftool: replace system call with Git::command_noisy
Date: Sat, 17 Mar 2012 20:54:14 +0100 [thread overview]
Message-ID: <CALxABCaGOhsTdRRtbVDbS37FHZ32yf4URGw34P-nq-RFm5sSYA@mail.gmail.com> (raw)
In-Reply-To: <CAFouethChs_2ZhYDjOqRTSoDMZ60DeMkS1A=Ke4G5G_pKPKrYA@mail.gmail.com>
On Sat, Mar 17, 2012 at 15:48, Tim Henigan <tim.henigan@gmail.com> wrote:
> On Sat, Mar 17, 2012 at 6:50 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
>> On Sat, Mar 17, 2012 at 03:48, David Aguilar <davvid@gmail.com> wrote:
>>> Is this no longer a concern? Does Git.pm need a similar portability
>>> caveat, or does it avoid the problem altogether since it uses fork()
>>> + exec() + waitpid()? (if this is true then it implies that this
>>> change is fine).
>
> I need to spend more time testing this. On Windows, I have tested
> with msysgit but not cygwin. Was ActiveState Perl used with cygwin
> git?
Yes, it is even stated in the commentary.
As far as I know, there is only one installation where a cygwin-compiled
Git is used with the ActiveState Perl (mine. I believe we would have
heard if there were others - it is an extremely annoying combination).
>> It _might_ work. Cygwin kind of has fork(2), it even works (kind of:
>> it is a *very* expensive thing to do). There are also other ifs and
>> whens, but it is worth a test. It's a nice clean up to have.
>
> Even it fork(2) is expensive, in this case it seems reasonable. Given
> the time needed to spawn the diff tool, the fork(2) time seems
> negligible.
Not Cygwin's fork. They really do a deep copy of parent process.
But actually, I misunderstood. The Perl used was of ActiveState origin.
So the code in question is not affected by Cygwin at all.
I have no idea how usable fork(2) of ActiveState Perl is.
Even if it is bad, I won't be really affected, I very seldom use the
difftool, and I believe I never used it on that particular system.
I try test the patch in the next days. I'll tell if something is
completely broken.
next prev parent reply other threads:[~2012-03-17 19:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 1:59 [PATCH 6/9] difftool: replace system call with Git::command_noisy Tim Henigan
2012-03-17 2:48 ` David Aguilar
2012-03-17 10:50 ` Alex Riesen
2012-03-17 14:48 ` Tim Henigan
2012-03-17 19:54 ` Alex Riesen [this message]
2012-03-18 1:21 ` Tim Henigan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALxABCaGOhsTdRRtbVDbS37FHZ32yf4URGw34P-nq-RFm5sSYA@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=tim.henigan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).