diff options
Diffstat (limited to 'os/utils.c')
-rw-r--r-- | os/utils.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/os/utils.c b/os/utils.c index a365aca81..36cb46f11 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1258,6 +1258,3 @@ System(char *command) } - -#ifdef DEBUG - ErrorF("System: `%s'\n", command); -#endif + DebugF("System: `%s'\n", command); @@ -1320,2 +1317,5 @@ Popen(char *command, char *type) if (old_alarm == SIG_ERR) { + close(pdes[0]); + close(pdes[1]); + free(cur); perror("signal"); @@ -1373,5 +1373,3 @@ Popen(char *command, char *type) -#ifdef DEBUG - ErrorF("Popen: `%s', fp = %p\n", command, iop); -#endif + DebugF("Popen: `%s', fp = %p\n", command, iop); @@ -1450,5 +1448,3 @@ Fopen(char *file, char *type) -#ifdef DEBUG - ErrorF("Fopen(%s), fp = %p\n", file, iop); -#endif + DebugF("Fopen(%s), fp = %p\n", file, iop); @@ -1481,6 +1477,3 @@ Pclose(pointer iop) -#ifdef DEBUG - ErrorF("Pclose: fp = %p\n", iop); -#endif - + DebugF("Pclose: fp = %p\n", iop); fclose(iop); |