bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling posix_spawn for non-existent binaries


From: Dmitry Goncharov
Subject: Re: Handling posix_spawn for non-existent binaries
Date: Wed, 17 Jul 2019 15:10:21 -0400

On Wed, Jul 17, 2019 at 12:38 PM Paul Smith <address@hidden> 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 the error on my own.

Subject to a race condition.

regads, Dmitry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]