From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: Select() on files. 15 Jun 1998 06:35:13 -0700 Message-ID: <01BD987D.2698BD40.cygnus.cygwin32.developers@sos> To: "'cygwin32-developers AT cygnus DOT com'" fhandler.h (fhandler_disk_file): disk file is not always read ready. select.cc (class fd_disk_file_map, fd_disk_file_map::convert_to_unix_fdset): new class to implement select on disk files. (pipethread): watch for files changes too. (cygwin32_select): misc changes to support polling select on disk files. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia begin 600 file_select.diff M9&EF9B M=7!R("]W:6YS=7 O9FAA;F1L97(N:"!W:6YS=7 O9FAA;F1L97(N M: HM+2T@+W=I;G-U<"]F:&%N9&QE%]F9'-E"B!]"B *("\J"BL@*B!#;&%S%]F9'-E M=" H=6YI>%]F9%]S970@*G5N:7A?F4@/2!'971&:6QE M4VEZ92 H9V5T7VAA;F1L92 H:2DL($Y53$PI.PHK(" @(" @<&]S:71I;VX@ M/2!3971&:6QE4&]I;G1EF4@/B!P;W-I=&EO;BD* M*R @(" @(" @>PHK(" @(" @(" @(%5.25A?1D1?4T54("AG971?9F0@*&DI M+"!U;FEX7W-E="D["BL@(" @(" @(" @*RMR970["BL)?0HK(" @(" @96QS M90HK"7L**R @(" @(" @("!53DE87T9$7T-,4B H9V5T7V9D("AI*2P@=6YI M>%]S970I.PHK(" @(" @("!]"BL@(" @?0HK("!R971UPHK"2 @(" @($173U)$(&9I;&5S:7IE+"!P;W-I=&EO;CL**PHK"2 @(" @ M(&9I;&5S:7IE(#T AT 1V5T1FEL95-I>F4@* HK"0D)7-?6=W:6XS,E]S96QE8W0@*&EN="!N+"!F9%]S970@*G)E861F9',L M"B @(" @("!W7-?;6%P(#T](# @?'P@ M=W)I=&5?86QW87ES7VUA<" ]/2 P('Q\"B @(" @("!E>&-E<'1?86QW87ES M7VUA<" ]/2 P('Q\(')E861?8V]N2!D;R!W92!N M965D(&%N(&%U=&]?9&5L7V9D7W-E=%]M87 _("!#;W5L9&XG="!T:&ES"B @ M(" @(&AA<'!E;B!I;B!A(&9D7W-E=%]M87 @8VQAPH@(" @(" @7-?;6%P*3L*(" @861M+F%D9" H6=W:6XS,E]S96QE8W0@*&EN="!N+"!F9%]S970@*G)E M861F9',L"B @(" @(" @(" @(" @(" @(" K*VYU;6)E7-?2!F9"=S(&%R92!S970@=&AE;@I 0" M M,3 W-2PV("LQ,3,Y+#<@0$ @8WEG=VEN,S)?%]F9'-E=" H97AC97!T9F1S*3L*( H@(" @ M(" @;7ER970@*ST@6=W:6XS,E]S96QE8W0@*&EN="!N+"!F9%]S970@*G)E861F9',L M"B @(" @(" O*B!4:&4@*S$@:7,@=&AE(&5X=')A(&AA;F1L92!UPI 0" M,3$U-RPW("LQ,C(R+#<@0$ @8WEG=VEN,S)?&-E<'1?:&%N9&QEF5O9B H2$%.1$Q% M*2D["B *(" @(" @("\J($9)6$U%.B!T:&ES(&QO;VMS(&EN969F:6-I96YT M+B @1&\@=V4@5MN=6UB97)?;V9?3L*( H@"2 @8VQE86YU<%]S;V-K=&AR M96%D("AS;V-K971?=7-E9"D["BT)("!C;&5A;G5P7W!I<&5T:')E860@*'!I M<&5?=7-E9"D["BL)("!C;&5A;G5P7W!I<&5T:')E860@*'!I<&5?=7-E9"!\ M?"!F:6QE5]H86YD;&4@*&@I+"!E M>&-E<'1F9',I.PH@(" @(" @(" @(" @("!E>&-E<'1?:&%N9&QE7VUA<"T^ M&-E<'1?:&%N9&QE M7)E=" ]('-E;&5C=%]R970[ M"B )(" @(" @*"II7V-L;W-EPH@"2 @ M(" @(" @(" @(" @%]F9'-E=" H%]F9'-E=" H M%]F9'-E=" H=W)I=&5F9',I.PH@(" @(" @(" @(&UY