In order for a thread to do asynchronous I/O, it has to do an fcntl(
SETOWN ) and then turn on signals on an fd by doing O_ASYNC.
My question is: since on Linux threads are processes, it seems that
the thread that does the SETOWN call, is the one (and only one) that
will receive SIGIOs on that fd. Is there a way to make this more
global and have the SIGIO delivered to any thread in the process
rathar than the thread that actually did the SETOWN call.
Thanks,
Moe