OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b4e7a
)
spawn: fix building on no-mmu systems
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Mar 2012 03:41:25 +0000
(23:41 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Mar 2012 03:42:24 +0000
(23:42 -0400)
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>
librt/spawn.c
patch
|
blob
|
history
diff --git
a/librt/spawn.c
b/librt/spawn.c
index
0877f6f
..
07d4019
100644
(file)
--- a/
librt/spawn.c
+++ b/
librt/spawn.c
@@
-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)