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
parent 03d76c6d5e
commit 04069bbe9d

View File

@@ -822,7 +822,11 @@ elif not defined(useNimRtl):
environ = data.sysEnv
discard execvp(data.sysCommand, data.sysArgs)
else:
discard execvpe(data.sysCommand, data.sysArgs, data.sysEnv)
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:
discard execve(data.sysCommand, data.sysArgs, data.sysEnv)