On 14/02/2025 08:18, Shruthi . wrote:
Hi Alan,
Reordering |preClose()| in AIX resolves the customer issue. We have
validated the fix, and the customer has confirmed it as well.
It may have resolved your customer issue but I'm not yet convinced it's
a robust workaround for the AIX issue. Can you check with your AIX team
on how happens if pthread_kill(thread, SGRTMAX-1) is called and the
target thread is in not in the read/write syscalls. It looks to me that
the signal won't be handled and the thread may continue on and block in
read/write. With your patch then thread calling the close method will do
the dup2 and hang as before. It's the window between setting
readerThread/writerThread and blocking in the read/write syscalls that
you need to look at.
-Alan