]> git.ipfire.org Git - thirdparty/make.git/commit
Don't reset stack size when using posix_spawn()
authorPaul Smith <psmith@gnu.org>
Tue, 3 Sep 2019 03:03:27 +0000 (23:03 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 7 Sep 2019 22:27:26 +0000 (18:27 -0400)
commit4f3a41c60a02f6df9fc0725698ade64825907822
tree44572340bab9d022c6c3692cbaf3408bf4025836
parent757a9d06e3a94d920d9773e561ef549834040574
Don't reset stack size when using posix_spawn()

There's no way to run setrlimit() from posix_spawn() so we can't reset
the stack limit in children; thus, don't change it in the parent.

* src/makeint.h (SET_STACK_SIZE): Don't set this when HAVE_POSIX_SPAWN.
* src/job.c (child_execute_job): Remove useless comment.
src/job.c
src/makeint.h