[master]: NMU to ensure the stack limit is reset when make re-execs itself.

Signed-off-by: Manoj Srivastava <srivasta@debian.org>
This commit is contained in:
Manoj Srivastava 2018-02-12 14:53:15 -08:00
parent e4f294d58a
commit 44a6217c26
No known key found for this signature in database
GPG key ID: 36BD720F6F576472
2 changed files with 13 additions and 0 deletions

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
make-dfsg (4.1-9.1) unstable; urgency=medium
* Non-maintainer upload.
* Ensure the stack limit is reset when make re-execs itself.
(Closes: #853213)
-- James Cowgill <jcowgill@debian.org> Tue, 31 Jan 2017 16:31:57 +0000
make-dfsg (4.1-9) unstable; urgency=low
* Reword the manual page. While the wording included in the manual page

5
main.c
View file

@ -2423,6 +2423,11 @@ main (int argc, char **argv, char **envp)
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);