Asynchronous Communications Using select and poll
By Sean Eric Fagan
Dr. Dobb's Journal September 1998
<b>(a)</b> ioctl(fd, PIOCWAIT, &procfs_status); <b>(b)</b> /* Copy because select modifies it */ ifds = process_fds; select(maxfd+1, &ifds, NULL, NULL, NULL);
Example 4: How truss checks for a stopped process: (a) Old version, using ioctl; (b) new version, using select.
Copyright © 1998, Dr. Dobb's Journal