mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:49:19 +02:00
Restore usage of fpexecve function inside ExecuteProcess
as set by commit 305d34a8f6
This commit is contained in:
parent
40a7e596ec
commit
512faa7141
@ -1590,8 +1590,8 @@ Begin
|
|||||||
if pid=0 then
|
if pid=0 then
|
||||||
begin
|
begin
|
||||||
{The child does the actual exec, and then exits}
|
{The child does the actual exec, and then exits}
|
||||||
fpexecv(PAnsiChar(pointer(LPath)),Cmdline2);
|
fpexecve(PAnsiChar(pointer(LPath)),Cmdline2,envp);
|
||||||
{ If the execve fails, we return an exitvalue of 127, to let it be known}
|
{ If the execve fails, we return an exitvalue of 127, to let it be known}
|
||||||
fpExit(127);
|
fpExit(127);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user