mirror of
https://github.com/mirror/make.git
synced 2026-08-09 09:32:12 +00:00
[SV 39851] Reinstate stack size limit for processes spawned via $(shell)
This commit is contained in:
@@ -1718,7 +1718,14 @@ func_shell_base (char *o, char **argv, int trim_newlines)
|
||||
if (pid < 0)
|
||||
perror_with_name (error_prefix, "fork");
|
||||
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
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user