git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mingw: workaround for hangs when sending STDIN

From
AMAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Date
Feb 13, 2020, 19:22 UTC
Message-ID
<b7bb3920-0400-df7f-0464-17d3a3583655@syntevo.com>
In-Reply-To
<CAPig+cQrxKuE=a99zPF7EGUSbye_s5ATEvUkz+EqsTZAfy_CbQ@mail.gmail.com>
On 13.02.2020 19:56, Eric Sunshine wrote:
Show 26 quoted lines
>>     clogged while it's trying to deal with 8MB of STDIN. Such deadlocks
>>     could  be defeated with writing less then pipe's buffer size per
> 
> s/then/than/
> 
>>     of pending reads. Therefore, if buffer is bigger then size of reads,
> 
> s/then/than/
> 
>> +test_expect_success 'stash handles large files' '
>> +       printf "%1023s\n%.0s" "x" {1..16384} >large_file.txt &&
>> +       git stash push --include-untracked -- large_file.txt
>> +'
> 
> Use of {1..16384} is not portable across shells. You should be able to
> achieve something similar by assigning a really large value to a shell
> variable and then echoing that value to "large_file.txt". Something
> like:
> 
>      x=0123456789
>      x=$x$x$x$x$x$x$x$x$x$x
>      x=$x$x$x$x$x$x$x$x$x$x
>      ...and so on...
>      echo $x >large_file.txt &&
> 
> or any other similar construct.
Thanks for having a look! I will address these in V2 next week.
Previous: Eric SunshineNext: Alexandr Miloslavskiy via GitGitGadget
Message 4 of 12 in “mingw: workaround for hangs when sending STDIN”
  1. mingw: workaround for hangs when sending STDINAlexandr Miloslavskiy via GitGitGadget, Feb 13, 2020
  2. Test program used to prove quota's behaviorAlexandr Miloslavskiy, Feb 13, 2020
  3. Eric SunshineFeb 13, 2020
  4. Alexandr MiloslavskiyFeb 13, 2020
  5. mingw: workaround for hangs when sending STDINAlexandr Miloslavskiy via GitGitGadget, Feb 17, 2020
  6. Eric SunshineFeb 17, 2020
  7. Junio C HamanoFeb 17, 2020
  8. Alexandr MiloslavskiyFeb 17, 2020
  9. mingw: workaround for hangs when sending STDINAlexandr Miloslavskiy via GitGitGadget, Feb 17, 2020
  10. Junio C HamanoFeb 18, 2020
  11. Johannes SchindelinFeb 27, 2020
  12. Junio C HamanoFeb 27, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.