saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
541 stars 141 forks source link

Fix for 'Can't run from within an escript #92' #93

Closed leefr closed 7 years ago

leefr commented 7 years ago

This is the patch I mentioned in the issue report. It corrects the main issue in a way that allows an override of portexe to work even in situations where the priv directory is not available (within escripts and possibly others).

As an added bonus, I corrected a warning I was getting from the C++ compilation as a dependency under mix, that didn't show when using the rebar3 on erlexec directly. (This was done prior to debugging work to create the real fix, in order to be sure it was not part of the problem.)