tst-too-many-cleanups never completes
Daniel Jacobowitz
drow at false.org
Thu Apr 19 19:57:35 UTC 2007
On Mon, Apr 16, 2007 at 09:14:37PM -0400, Mike Frysinger wrote:
> On Monday 16 April 2007, Daniel Jacobowitz wrote:
> > - It calls sleep expecting a cancellation point at nanosleep. But
> > libc.so's sleep.c has "libc_hidden_proto(nanosleep)" which means it
> > always calls the libc.so version, never the wrapped version in
> > libpthread.so that's a cancellation point. Delete that line from
> > sleep.c and usleep.c and now sleep/usleep start acting like
> > cancellation points.
>
> i need to finish up my local cancellation handler rewrite and get it
> merged ...
In case anyone's interested in a fix for this meanwhile:
---
libc/unistd/sleep.c | 1 -
libc/unistd/usleep.c | 2 --
2 files changed, 3 deletions(-)
Index: uclibc-0.9.29/libc/unistd/sleep.c
===================================================================
--- uclibc-0.9.29.orig/libc/unistd/sleep.c 2007-01-18 12:33:01.000000000 -0800
+++ uclibc-0.9.29/libc/unistd/sleep.c 2007-04-16 13:57:15.000000000 -0700
@@ -30,7 +30,6 @@ libc_hidden_proto(sigprocmask)
//libc_hidden_proto(__sigaddset)
//libc_hidden_proto(__sigemptyset)
//libc_hidden_proto(__sigismember)
-libc_hidden_proto(nanosleep)
#if 0
/* This is a quick and dirty, but not 100% compliant with
Index: uclibc-0.9.29/libc/unistd/usleep.c
===================================================================
--- uclibc-0.9.29.orig/libc/unistd/usleep.c 2007-01-18 12:33:01.000000000 -0800
+++ uclibc-0.9.29/libc/unistd/usleep.c 2007-04-16 13:57:07.000000000 -0700
@@ -9,8 +9,6 @@
#include <sys/types.h>
#include <unistd.h>
-libc_hidden_proto(nanosleep)
-
int usleep (__useconds_t usec)
{
const struct timespec ts = {
--
Daniel Jacobowitz
CodeSourcery
More information about the uClibc
mailing list