Asynchronous Communications Using select and poll
By Sean Eric Fagan
Dr. Dobb's Journal September 1998
(a)
ioctl(fd, PIOCWAIT, &procfs_status);
(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.
Back to Article
Copyright © 1998, Dr. Dobb's Journal