[PATCH] Fix tst-aio7.

Ulrich Drepper drepper@redhat.com
Thu Mar 6 19:56:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roland McGrath wrote:

> How so?  The test looks clearly wrong to me.  aio_suspend will return when
> the CB0 request is done, and the CB1 request is still outstanding.  Unless
> we synchronize with that request, CB1 is still in the aio data structures
> when it is no longer live on the stack.

Then these variables have to have global scope.

The test in question was also testing that the AIO handling at exit time
is leak-free.  There is not explicit test but one easily sees system
resources being depleated.  This is important once we have a
kernel-supported AIO implementation.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Z6gj2ijCOnn/RHQRAiM/AKCMnrRh33tGLQtD4OX/25RZUY/YPACgof8+
1u4fOGGrnW8cD7ftE0vbQ14=
=FNCu
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list