[gpm] Return value from Gpm_Open()

Zdenek Prikryl zprikryl@redhat.com
Tue Oct 7 10:13:22 CEST 2008


Zdenek Prikryl wrote:
> Hello,
> when Gpm_Open() is called in a terminal emulator where $TERM is not xterm, it
> returns a file descriptor >= 0 instead of -1. This should happen only on linux
> console.
> 
> In version 1.20.1 everything works fine, bud not any more in 1.20.5. Gpm_Open()
> tries to open /dev/gpmctl. In version 1.20.1 open() fails, bud in 1.20.5 open()
> succeeds. I don't look deeply into source code and before I do so, Nico, have 
> you any idea where can be a bug?
> 

Ok, I found where the problem is. On 1.20.1, there is the test on "text mode". 
In 1.20.5 this test is reworked bud not all functionality is ported. So, I'm 
sending a patch which corrects it. Please look at it and write your opinion.

Thanks.

Regards.

-- 
Zdenek Prikryl <zprikryl@redhat.com>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gpm-1.20.5-linux-console.patch
Url: http://lists.linux.it/pipermail/gpm/attachments/20081007/730ad2be/attachment.txt 


More information about the gpm mailing list