diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/gnu_make/parallel-input.html | |
new repository
Diffstat (limited to 'devdocs/gnu_make/parallel-input.html')
| -rw-r--r-- | devdocs/gnu_make/parallel-input.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/gnu_make/parallel-input.html b/devdocs/gnu_make/parallel-input.html new file mode 100644 index 00000000..a54c9f65 --- /dev/null +++ b/devdocs/gnu_make/parallel-input.html @@ -0,0 +1,6 @@ + <h1 class="subsection">Input During Parallel Execution</h1> <p>Two processes cannot both take input from the same device at the same time. To make sure that only one recipe tries to take input from the terminal at once, <code>make</code> will invalidate the standard input streams of all but one running recipe. If another recipe attempts to read from standard input it will usually incur a fatal error (a ‘<samp>Broken pipe</samp>’ signal). </p> <p>It is unpredictable which recipe will have a valid standard input stream (which will come from the terminal, or wherever you redirect the standard input of <code>make</code>). The first recipe run will always get it first, and the first recipe started after that one finishes will get it next, and so on. </p> <p>We will change how this aspect of <code>make</code> works if we find a better alternative. In the mean time, you should not rely on any recipe using standard input at all if you are using the parallel execution feature; but if you are not using this feature, then standard input works normally in all recipes. </p><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Free Software Foundation, Inc. <br>Licensed under the GNU Free Documentation License.<br> + <a href="https://www.gnu.org/software/make/manual/html_node/Parallel-Input.html" class="_attribution-link">https://www.gnu.org/software/make/manual/html_node/Parallel-Input.html</a> + </p> +</div> |
