mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-29 08:09:03 +00:00
[SV 39851] Reinstate stack size limit for processes spawned via $(shell)
This commit is contained in:
parent
c5bfa40044
commit
ab78cbc71c
2 changed files with 13 additions and 1 deletions
|
@ -55,6 +55,11 @@
|
||||||
* makefile.vms: Ditto.
|
* makefile.vms: Ditto.
|
||||||
* po/POTFILES.in: Ditto.
|
* po/POTFILES.in: Ditto.
|
||||||
|
|
||||||
|
2013-08-22 Petr Machata <pmachata@redhat.com>
|
||||||
|
|
||||||
|
* function.c (func_shell_base): Get rid of any avoidable limit on
|
||||||
|
stack size for processes spawned via $(shell).
|
||||||
|
|
||||||
2013-07-22 Paul Smith <psmith@gnu.org>
|
2013-07-22 Paul Smith <psmith@gnu.org>
|
||||||
|
|
||||||
* implicit.c (pattern_search): Use PARSE_SIMPLE_SEQ() even for
|
* implicit.c (pattern_search): Use PARSE_SIMPLE_SEQ() even for
|
||||||
|
|
|
@ -1718,7 +1718,14 @@ func_shell_base (char *o, char **argv, int trim_newlines)
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
perror_with_name (error_prefix, "fork");
|
perror_with_name (error_prefix, "fork");
|
||||||
else if (pid == 0)
|
else if (pid == 0)
|
||||||
child_execute_job (0, pipedes[1], command_argv, envp);
|
{
|
||||||
|
#ifdef SET_STACK_SIZE
|
||||||
|
/* Reset limits, if necessary. */
|
||||||
|
if (stack_limit.rlim_cur)
|
||||||
|
setrlimit (RLIMIT_STACK, &stack_limit);
|
||||||
|
#endif
|
||||||
|
child_execute_job (0, pipedes[1], command_argv, envp);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue