Uses execve() in osproc on OpenWrt and uClibc-based platforms.
This commit is contained in:
parent
03d76c6d5e
commit
04069bbe9d
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue