Boost C++ Libraries: Ticket #1577: Some commands don't work because hStdInput == 0 https://svn.boost.org/trac10/ticket/1577 <p> The function execcmd() zero-initializes STARTUPINFO in exent.c at <a class="changeset" href="https://svn.boost.org/trac10/changeset/38009" title="Implement running action commands through pipes (-p option) to fix ...">changeset:38009</a>. But HANDLE value 0 is not equal to INVALID_HANDLE_VALUE. So the member hStdInput points an unknown object. In this case, some shell commands such as "echo" fail. </p> <p> Please add the following codes: </p> <pre class="wiki"> /* disable stdin */ si.hStdInput = INVALID_HANDLE_VALUE; </pre><p> or </p> <pre class="wiki"> /* inherit stdin */ si.hStdInput = GetStdHandle(STD_INPUT_HANDLE); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1577 Trac 1.4.3 René Rivera Fri, 20 Jun 2008 03:52:10 GMT milestone changed https://svn.boost.org/trac10/ticket/1577#comment:1 https://svn.boost.org/trac10/ticket/1577#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost.Jam 3.1.17</span> </li> </ul> Ticket René Rivera Sun, 23 Nov 2008 02:37:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1577#comment:2 https://svn.boost.org/trac10/ticket/1577#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49883" title="Let the child bjam commands inherit stdin, as some commands assume ...">[49883]</a>) Let the child bjam commands inherit stdin, as some commands assume it's available. (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1577" title="#1577: Bugs: Some commands don't work because hStdInput == 0 (closed: fixed)">#1577</a>) </p> Ticket