Thread (48 messages) 48 messages, 5 authors, 2021-11-26

Re: [PATCH v2] pager: fix crash when pager program doesn't exist

flat view

From: Enzo Matsumiya <hidden>
Date: 2021-11-22 14:52:27

Possibly related (same subject, not in this thread)

On 11/21, Jeff King wrote:
On Sun, Nov 21, 2021 at 06:10:08PM -0800, Junio C Hamano wrote:
quoted
Well, not to me X-<.  This is way too aggressive a change to be made
lightly without auditing the current users of run_command API.
Yikes. Thanks for a dose of sanity. I was looking too much at just the
pager tests.
Thanks for your input, Junio. I was, too, focused only on pager side and
even more so on the bug itself.

<snip> as I have no familiarity with other parts of the code </snip>
quoted
When merged to 'seen', this literally destroys tons of tests (the
first and easiest one to observe may be t0002).
Forget 'seen'. Applying it on master shows plenty of breakages. :)
I should *probably* run the full test suite next time...
I think we should probably punt on this direction, and just make sure
that setup_pager() either reinitializes the child_process as appropriate
(as in the patch I showed in the earlier thread) or just refuses to try
running the pager twice (I didn't show a patch, but it should just be a
matter of setting a static flag).
I'm preparing v3 with the above suggestions in mind.


Cheers,

Enzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help