summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-16 22:28:46 +0000
committerPaul Smith <psmith@gnu.org>1999-07-16 22:28:46 +0000
commit826ab14b26b33f83a6b2f08660670569fd083a4e (patch)
tree52637452c6bb6a5b4fbb2fe49560abccb61e90aa /job.c
parenta3cf773e296968870eaa76d45323690d14d9b44e (diff)
downloadgunmake-826ab14b26b33f83a6b2f08660670569fd083a4e.tar.gz
* Fix some memory and file descriptor leaks.
Diffstat (limited to 'job.c')
-rw-r--r--job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/job.c b/job.c
index caabb1e..e84897b 100644
--- a/job.c
+++ b/job.c
@@ -897,7 +897,7 @@ start_job_command (child)
/* Set the descriptor to close on exec, so it does not litter any
child's descriptor table. When it is dup2'd onto descriptor 0,
that descriptor will not close on exec. */
-#ifdef FD_SETFD
+#ifdef F_SETFD
#ifndef FD_CLOEXEC
#define FD_CLOEXEC 1
#endif
@@ -980,7 +980,7 @@ start_job_command (child)
/* We are the child side. */
unblock_sigs ();
child_execute_job (child->good_stdin ? 0 : bad_stdin, 1,
- argv, child->environment);
+ argv, child->environment);
}
else if (child->pid < 0)
{