Uses execve() in osproc on OpenWrt and uClibc-based platforms.

This commit is contained in:
Elie Zedeck 2014-11-16 12:53:43 +03:00
commit 04069bbe9d

View file

@ -821,6 +821,10 @@ elif not defined(useNimRtl):
# On MacOSX we can arrive here only from fork, so this is safe:
environ = data.sysEnv
discard execvp(data.sysCommand, data.sysArgs)
else:
when defined(uClibc):
# uClibc environment (OpenWrt included) doesn't have the full execvpe
discard execve(data.sysCommand, data.sysArgs, data.sysEnv)
else:
discard execvpe(data.sysCommand, data.sysArgs, data.sysEnv)
else: