Skip to content

Commit e7cc473

Browse files
committed
mingw: also offer debug output for issue 1481 if the spawn worked
This is just to ensure that the code will work on the bug reporters' side. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 063b0e7 commit e7cc473

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/mingw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,10 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
17561756
* handle inheritance. This is still better than failing to create
17571757
* processes.
17581758
*/
1759+
if (debug_1481)
1760+
warning("ret: %d, restrict %d, #count: %d, err: %d",
1761+
(int)ret, restrict_handle_inheritance,
1762+
(int)stdhandles_count, (int)GetLastError());
17591763
if (!ret && restrict_handle_inheritance && stdhandles_count) {
17601764
DWORD err = GetLastError();
17611765
if (debug_1481) {

0 commit comments

Comments
 (0)