Re: [LTP] [POSIX][PATCH 0/2]aio_suspend may be interrupted by completion signal.

Cyril Hrubis
2010-11-11T14:28:48Z

This seems reasonable, as in the original code any aio_read could send
the signal that could interrupt aio_suspend (and even completion of the
aio request we are waiting for could interrupt it with signal).

And as I quick looked at the code and there is more to fix:

Bugs:

* relying on write() writing the whole buffer

* not checking malloc() return value

Conding style issues:

* bunch of useless pointer cast

* spaces between function names and () (all free (..), malloc (...) ...)