exception descriptor

From: Tzung-Yu Wen (tywen@csie.nctu.edu.tw)
Date: 06/07/94

	A question about programmming skill....

	in comm.c, after using select() to select a descriptor,
	why do we need to check if exception descriptor is set?
	When will the exception descriptor be set? Can anyone
	give me an example? Thanks.

      if (select(maxdesc + 1, &input_set, &output_set, &exc_set, &null_time)
           < 0) {
         perror("Select poll");

      /* kick out the freaky folks */
      for (point = descriptor_list; point; point = next_point) {
         next_point = point->next;
         if (FD_ISSET(point->descriptor, &exc_set)) {
            FD_CLR(point->descriptor, &input_set);
            FD_CLR(point->descriptor, &output_set);

 溫宗昱, 國立交通大學 資訊工程學系
 電話: (035)726111 轉 6431 (十舍 209室)
 E-mail Address: tywen@csie.nctu.edu.tw

This archive was generated by hypermail 2b30 : 12/07/00 PST