Commit Graph
2 Commits
Author SHA1 Message Date
Will DietzandRich Felker 3f3cc3e995 setvbuf: minor comment typo fix 2018-04-19 12:54:58 -04:00
Will DietzandRich Felker 004dc9549b posix_spawn: use larger stack to cover worst-case in execvpe
execvpe stack-allocates a buffer used to hold the full path
(combination of a PATH entry and the program name)
while searching through $PATH, so at least
NAME_MAX+PATH_MAX is needed.

The stack size can be made conditionally smaller
(the current 1024 appears appropriate)
should this larger size be burdensome in those situations.
2017-10-19 19:04:16 -04:00