mirror of
https://git.busybox.net/uClibc
synced 2025-10-14 01:32:00 +08:00
spawn: fix building on no-mmu systems
We don't have fork() on no-mmu, so if we're going to end up calling it, return ENOSYS instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -120,8 +120,13 @@ __spawni(pid_t *pid, const char *file,
|
||||
pid_t new_pid;
|
||||
if (is_vfork_safe(flags) && !fa)
|
||||
new_pid = vfork();
|
||||
else
|
||||
else {
|
||||
#ifdef __ARCH_USE_MMU__
|
||||
new_pid = fork();
|
||||
#else
|
||||
return ENOSYS;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (new_pid) {
|
||||
if (new_pid < 0)
|
||||
|
Reference in New Issue
Block a user