]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
authorRoland McGrath <roland@gnu.org>
Wed, 11 Aug 2004 18:51:13 +0000 (18:51 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 11 Aug 2004 18:51:13 +0000 (18:51 +0000)
attribute.  Return NULL instead of calling pthread_exit at the end.

ChangeLog
nptl/tst-rwlock14.c
sysdeps/pthread/aio_misc.c

index dfdcd0cad48dd67023da140be814ec571bec34ac..f4b74e35e0818f1572e16326d76afd6ea0aaa125 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
+       attribute.  Return NULL instead of calling pthread_exit at the end.
+
 2004-08-11  Roland McGrath  <roland@redhat.com>
 
        * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
index b9611a81f09c6482f206898ea8c406ef1cb0c78f..fc0d3d219f7de15a64837d3a4e8fb2cdee685d38 100644 (file)
@@ -38,12 +38,12 @@ tf (void *arg)
       exit (EXIT_FAILURE);
     }
 
-  pthread_barrier_wait (&b);
+  pthread_t mt = *(pthread_t *) arg;
 
-  pthread_t *mtp = (pthread_t *) arg;
+  pthread_barrier_wait (&b);
 
   /* This call will never return.  */
-  pthread_join (*mtp, NULL);
+  pthread_join (mt, NULL);
 
   return NULL;
 }
index 1da3ad2c73985a29f932c91d7016c60d485afad6..5c9ccb46d0492f79b36643b72bf8d026374ae589 100644 (file)
@@ -1,5 +1,6 @@
 /* Handle general operations.
-   Copyright (C) 1997,1998,1999,2000,2001,2003 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -470,7 +471,6 @@ __aio_enqueue_request (aiocb_union *aiocbp, int operation)
 
 
 static void *
-__attribute__ ((noreturn))
 handle_fildes_io (void *arg)
 {
   pthread_t self = pthread_self ();
@@ -676,7 +676,7 @@ handle_fildes_io (void *arg)
     }
   while (runp != NULL);
 
-  pthread_exit (NULL);
+  return NULL;
 }
 
 
This page took 0.046461 seconds and 5 git commands to generate.