Re: Handling posix_spawn for non-existent binaries

2019-07-17 Thread Dmitry Goncharov
On Wed, Jul 17, 2019 at 12:38 PM Paul Smith wrote: ... > The only idea I have so far is to try to detect when this situation > occurs (by looking for the 127 exit status) then using stat() to check > to see if the binary exists (I suppose I need to check for executable > status) and generating

Handling posix_spawn for non-existent binaries

2019-07-17 Thread Paul Smith
So over the weekend I started some testing on different systems just to get a feel for where the code is, portability-wise. I discovered that the enhancement to use posix_spawn instead of fork/exec results in a number of failed regression tests on older systems. The problem doesn't appear on