Skip to content

Commit

Permalink
mingw: also offer debug output for issue 1481 if the spawn worked
Browse files Browse the repository at this point in the history
This is just to ensure that the code will work on the bug reporters'
side.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 7, 2018
1 parent 063b0e7 commit e7cc473
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,10 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
* handle inheritance. This is still better than failing to create
* processes.
*/
if (debug_1481)
warning("ret: %d, restrict %d, #count: %d, err: %d",
(int)ret, restrict_handle_inheritance,
(int)stdhandles_count, (int)GetLastError());
if (!ret && restrict_handle_inheritance && stdhandles_count) {
DWORD err = GetLastError();
if (debug_1481) {
Expand Down

0 comments on commit e7cc473

Please sign in to comment.