Simple question, if I clone a thread, and I have open file descriptors set up to generate SIGIO signals, and keep the same descriptor tables, what happens when in relations to signals after the clone? Do they just go the original thread, or does something less obvious happen?
Also, I am using clone to implement threads (I want to write my own threading functions/libraries), are there any other pitfalls or anything that I should be aware? Feel free to just link to other posts that you think I should look at.
I haven't had any luck finding any good quality article on implementing threads using clone, so would appreciate know where any good info is generally.