Refactor local `execvpe(3)` implementation
The previous code was prone to conflicts with when the platform happens to expose a `execvpe(3)` implementation in its libc. This commit renames the internal implementation to `__hsunix_execvpe` as well as adding an autoconf-detection for the presence of `execvpe(3)`, in which case `__hsunix_execvpe()` forwards the call to `execvpe(3)`. Moreover, the code has been cleaned up to remove likely bitrotted CPP conditionals. This should fix #22 (This also partially addresses #11 on platforms which have a libc-provided `execvpe(3)`)
Showing
- System/Posix/Process/Internals.hs 1 addition, 1 deletionSystem/Posix/Process/Internals.hs
- cbits/execvpe.c 21 additions, 23 deletionscbits/execvpe.c
- cbits/ghcrts.c 14 additions, 0 deletionscbits/ghcrts.c
- configure.ac 3 additions, 0 deletionsconfigure.ac
- include/execvpe.h 4 additions, 20 deletionsinclude/execvpe.h
- unix.cabal 1 addition, 0 deletionsunix.cabal
Loading
Please register or sign in to comment