Browse Source

Revert "sparc: disable cancellable system, as it fails in strange ways right now"

This reverts commit 1db4f8f8389f6a935ecd83aff7fcce5d1cf2c0f3.

It is unclear in which way this is breaking sparc systems.
With this change added you get following linking error:
libpthread/nptl/libpthread_so.a(pt-system.oS): In function `__libc_system':
libc/stdlib/system.c:64: undefined reference to `__wait4_nocancel'

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Waldemar Brodkorb 10 years ago
parent
commit
789fca90bf
1 changed files with 7 additions and 6 deletions
  1. 7 6
      libc/stdlib/system.c

+ 7 - 6
libc/stdlib/system.c

@@ -18,13 +18,14 @@
 #include <sysdep-cancel.h>
 #include <sysdep-cancel.h>
 #endif
 #endif
 
 
-extern __typeof(system) __libc_system;
+#if !defined __UCLIBC_HAS_THREADS_NATIVE__
-
+/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
-/* TODO: the cancellable version breaks on sparc currently,
+#include <sys/syscall.h>
- * need to figure out why still
+#ifndef __NR_vfork
- */
+# define vfork fork
-#if !defined __UCLIBC_HAS_THREADS_NATIVE__ || defined __sparc__
+#endif
 
 
+extern __typeof(system) __libc_system;
 int __libc_system(const char *command)
 int __libc_system(const char *command)
 {
 {
 	int wait_val, pid;
 	int wait_val, pid;