summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-03-20 02:36:36 +0000
committerPaul Smith <psmith@gnu.org>2006-03-20 02:36:36 +0000
commit24aac7f8f6c72d60ce7c9f80868cbf21fb458072 (patch)
tree7172e5223fe888647c6a77fc0b892dfd8f081a45 /remake.c
parent29e539bad01c06a7e9655b5c33a88f05455124ad (diff)
downloadgunmake-24aac7f8f6c72d60ce7c9f80868cbf21fb458072.tar.gz
Add some alloca(0) calls for systems without "normal" alloca support.
Fix a file descriptor leak with make re-exec while using the jobserver. Update some release information.
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/remake.c b/remake.c
index 2dfade3..a752734 100644
--- a/remake.c
+++ b/remake.c
@@ -264,6 +264,7 @@ update_goal_chain (struct dep *goals)
just_print_flag = n;
job_slots = j;
}
+
return status;
}
@@ -306,6 +307,9 @@ update_file (struct file *file, unsigned int depth)
status |= update_file_1 (f, depth);
check_renamed (f);
+ /* Clean up any alloca() used during the update. */
+ alloca (0);
+
/* If we got an error, don't bother with double_colon etc. */
if (status != 0 && !keep_going_flag)
return status;