diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-07 11:36:45 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-07 11:36:45 -0500 |
commit | 31aadf6b6ffdcf9cef6c92d139d52e580938d1d4 (patch) | |
tree | 58e2e24ca577ae728ef21507e1310ba30db38428 /docs/bfs.1 | |
parent | 79aee58a4621d01c4b1e98c332775f3b87213ddb (diff) | |
download | bfs-31aadf6b6ffdcf9cef6c92d139d52e580938d1d4.tar.xz |
xspawn: Do $PATH resolution up-front
posix_spawnp() is typically implemented like execvp(), i.e., by
repeatedly trying execv() with each $PATH component until it succeeds.
This is much slower than resolving the executable path up-front and then
calling execv() once, so do that.
Fixes: https://github.com/tavianator/bfs/pull/127#issuecomment-1795095126
Diffstat (limited to 'docs/bfs.1')
0 files changed, 0 insertions, 0 deletions