commit | a3d8c086d54c112fecfa2b9026a32a14f741f5f5 | [log] [tgz] |
---|---|---|
author | Jeremy Devenport <jeremy.devenport@gmail.com> | Tue May 31 03:09:24 2016 -0400 |
committer | Paul Smith <psmith@gnu.org> | Tue May 31 03:17:26 2016 -0400 |
tree | 508a41ece8353ccc38404bc2701c957a9bc3bfc0 | |
parent | 4762480ae9cb8df4878286411f178d32db14eff0 [diff] |
* main.c (main): [SV 48009] Reset stack limit for make re-exec. Copyright-paperwork-exempt: yes
diff --git a/main.c b/main.c index e606488..fa8045f 100644 --- a/main.c +++ b/main.c
@@ -2454,6 +2454,11 @@ exit (WIFEXITED(r) ? WEXITSTATUS(r) : EXIT_FAILURE); } #else +#ifdef SET_STACK_SIZE + /* Reset limits, if necessary. */ + if (stack_limit.rlim_cur) + setrlimit (RLIMIT_STACK, &stack_limit); +#endif exec_command ((char **)nargv, environ); #endif free (aargv);