This was sent Tue, 18 Mar 2008 but rejected (probably sent from wrong email). I had to modify libcurses.c from gpm-1.20.3pre3. We use alarm() to update the screen every 10 seconds. This was causing select() to return -1 (errno=EINTR). I had to move the test for (flag==-1) before FD_ISSET(). I couldn't combine the (!flag) and (flag==-1) tests because I need the GPM_DRAWPOINTER() call. I believe this applies anywhere select() is called ("sets and timeout become undefined" on error). Also, I added tests for fd<0 and gpm_fd<0. One of these is < 0 if the gpm daemon is restarted. Should gpm_hflag=1 before return? Thanks Stan Dickerson Energy Control Systems Here is the revised section of libcurses.c:
-- Stan Dickerson Energy Control Systems, Inc. 2940 Cole Court Norcross, GA 30071 1-800-648-0970 770-448-0651 770-446-1319 fax |
_______________________________________________ gpm mailing list gpm@xxxxxxxxxxxxxx http://lists.linux.it/listinfo/gpm