Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
select system call and signal handlers
I have this question regarding usage of select system call and signal handler.
We can use select to check for I/O readiness of a fds. At the same time we can have signal handlers for SIGIO signal.
I suppose I make a signal handler for SIGIO signal and at the same time I am calling select on the same fd(device on which I am expecting I/O).
Now on I/O readiness signal handler will be called as well as select will get unblocked.
My question is when the SIGIO occurs, "Is there any guarantee of order in call of signal handler and select return?"
0 · ·