From 5ed9fb46b28be4a703c1d88915fa150f0b74d5f4 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 22 Apr 2000 02:11:17 +0000 Subject: * Various bug fixes. --- w32/subproc/sub_proc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'w32/subproc') diff --git a/w32/subproc/sub_proc.c b/w32/subproc/sub_proc.c index 1cf3bea..52f2fa2 100644 --- a/w32/subproc/sub_proc.c +++ b/w32/subproc/sub_proc.c @@ -7,11 +7,10 @@ #include "proc.h" #include "w32err.h" #include "config.h" +#include "debug.h" static char *make_command_line(char *shell_name, char *exec_path, char **argv); -extern int debug_flag; /* from make */ - typedef struct sub_process_t { int sv_stdin[2]; int sv_stdout[2]; @@ -506,10 +505,9 @@ process_begin( if (envblk) free(envblk); return -1; } else { - if (debug_flag) - printf("CreateProcess(%s,%s,...)\n", - exec_path ? exec_path : "NULL", - command_line ? command_line : "NULL"); + DB (DB_JOBS, ("CreateProcess(%s,%s,...)\n", + exec_path ? exec_path : "NULL", + command_line ? command_line : "NULL")); if (CreateProcess( exec_path, command_line, -- cgit v1.2.3