summaryrefslogtreecommitdiffstats
path: root/src/fsade.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-07 11:36:45 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-07 11:36:45 -0500
commit31aadf6b6ffdcf9cef6c92d139d52e580938d1d4 (patch)
tree58e2e24ca577ae728ef21507e1310ba30db38428 /src/fsade.c
parent79aee58a4621d01c4b1e98c332775f3b87213ddb (diff)
downloadbfs-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 'src/fsade.c')
0 files changed, 0 insertions, 0 deletions