summary refs log tree commit diff
path: root/rt/aio_misc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-11 20:19:13 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-11 20:19:13 +0000
commit6b9c2e671c08bd80606d9da81aee00bb03c44f90 (patch)
tree9152632246378cff143bd87c197cc5785600b334 /rt/aio_misc.c
parent18de8c733f47eedd3ccb9705c2d3bb8464025588 (diff)
downloadglibc-6b9c2e671c08bd80606d9da81aee00bb03c44f90.tar.gz
glibc-6b9c2e671c08bd80606d9da81aee00bb03c44f90.tar.xz
glibc-6b9c2e671c08bd80606d9da81aee00bb03c44f90.zip
Update.
	* rt/tst-aio.c: Add test for aio_read and lio_listio.

	* rt/lio_listio.c: Correct total counter handling.

	* rt/aio_misc.c (handle_fildes_io): Correctly dequeue elements
	from request queue.

	* test-skeleton.c (main): Make stdout unbuffered.  Improve message
	of signal on exit even more.
Diffstat (limited to 'rt/aio_misc.c')
-rw-r--r--rt/aio_misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rt/aio_misc.c b/rt/aio_misc.c
index 030bef9f76..ca8f4de4bd 100644
--- a/rt/aio_misc.c
+++ b/rt/aio_misc.c
@@ -476,6 +476,8 @@ handle_fildes_io (void *arg)
 	    runp->next_fd->last_fd = runp->last_fd;
 	  if (runp->last_fd != NULL)
 	    runp->last_fd->next_fd = runp->next_fd;
+	  else
+	    requests = runp->next_fd;
 	}
       else
 	{
@@ -486,6 +488,8 @@ handle_fildes_io (void *arg)
 	    runp->next_fd->last_fd = runp->next_prio;
 	  if (runp->last_fd != NULL)
 	    runp->last_fd->next_fd = runp->next_prio;
+	  else
+	    requests = runp->next_prio;
 	}
 
       /* Free the old element.  */