summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-22 00:56:23 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:41 +0200
commit9ac34e396b42cb58634f22ba190a72c736a33b95 (patch)
tree6e37adf6f91ba5b98d85b7f7aa1e6ed88a1905d9 /libpthread
parent050f753172991d891c523b742fcab5ecc602cc92 (diff)
fork: do not add fork() to libpthread
No need for __libc_fork either. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/fork.c5
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/pt-fork.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index ab4a6e6eb..d4eaf77e7 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -59,7 +59,7 @@ fresetlockfiles (void)
}
pid_t
-__libc_fork (void)
+fork (void)
{
pid_t pid;
struct used_handler
@@ -222,5 +222,4 @@ __libc_fork (void)
return pid;
}
-weak_alias(__libc_fork,fork)
-libc_hidden_weak(fork)
+libc_hidden_def(fork)
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/pt-fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/pt-fork.c
index b8a938c43..417477e42 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/pt-fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/pt-fork.c
@@ -19,9 +19,11 @@
#include <unistd.h>
+#if 0
static pid_t
__fork (void)
{
return __libc_fork ();
}
strong_alias (__fork, fork)
+#endif