=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/parse/glob.c,v retrieving revision 1.4 retrieving revision 1.7 diff -u -p -r1.4 -r1.7 --- OpenXM_contrib2/asir2018/parse/glob.c 2019/12/13 14:40:50 1.4 +++ OpenXM_contrib2/asir2018/parse/glob.c 2020/06/20 05:56:08 1.7 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.3 2019/03/29 04:43:18 ohara Exp $ + * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.6 2020/06/19 08:14:38 noro Exp $ */ #include "ca.h" #include "al.h" @@ -568,12 +568,15 @@ void int_handler(int sig) } #endif #if !defined(ANDROID) && defined(linux) +/* #if 1 while ( stdin->_IO_read_ptr < stdin->_IO_read_end ) #else while ( stdin->_gptr < stdin->_egptr ) #endif getchar(); +*/ + if( __freadable(stdin) ) __fpurge(stdin); #endif while ( 1 ) { char buf[BUFSIZ];