Asynchronous Communications Using select and poll
By Sean Eric Fagan
Dr. Dobb's Journal September 1998
if (p->p_wchan == (caddr_t)&selwait) { if (p->p_stat == SSLEEP) setrunnable(p); else unsleep(p); } else if (p->p_flag & P_SELECT) p->p_flag &= ~P_SELECT;
Example 1: Waking up just one process.
Copyright © 1998, Dr. Dobb's Journal