[Info-vax] select() returning -1

John E. Malmberg wb8tyw at qsl.network
Sat Feb 16 23:02:24 EST 2013


On 2/16/2013 7:16 PM, BillPedersen wrote:
> On Saturday, February 16, 2013 7:03:42 PM UTC-5, Sam Ferencik wrote:
>> Hi,
>> Is there something wrong with the select() call on VMS? If so, is
>> there a workaround, or an equivalent native DEC call?
 >>
>> ==Why I'm asking==
>>
>> I'm looking at a problem in vim (on VMS only): vim freezes when
>> you  encounter the "swap file already exists" dialog and you hit
 >> <Esc>. Steps to reproduce here:
 >> http://www.polarhome.com/horde/whups/ticket/?id=15
>>
>> I have drilled down (in the vim source code) to a select() call
>> which  always returns -1, meaning error.
 >> [http://linux.die.net/man/2/select]
>
> You might look here:
>
>       https://sourceforge.net/p/vms-ports/tickets/19/
>
> The above references some existing workarounds.
>
> If you have interest in getting involved please get back to me.

You will want to look at the VMS specific source code for BASH 4.2.39 at 
the GNV source forge project, or extract it from one of the kits at 
ftp://encompasserve.org/gnv/*/bash*.*

Not only is there a wrapper on select() that will work for terminals, 
there is also the correct code for getting the terminal height and width 
settings.

The last time I looked at the VIM code it was getting settings from the 
SMG$ routines directly or via the CURSES routines.  Neither return the 
correct answers.

Regards,
-John
wb8tyw at qsl.network
Personal Opinion Only





More information about the Info-vax mailing list