[CM] still have problem with xcmnw

rm@fabula.de rm@fabula.de
Thu, 3 Oct 2002 19:31:42 +0200


On Thu, Oct 03, 2002 at 12:47:19PM -0500, Dave Phillips wrote:
> [...] 
> So is there any recommended better way of handling xcmnw ?

Yes, i had that 'feature' too. Looks like a bugglet in function
'GetCmnString(...)' -- the code should test for the special case
of reading 0 characters, allmost (allways?) an indication that the
file stream is empty, especially when called from 'XtAppAddInput(...)'.
A quick fixup:

  n = read(*fd,buffer,4);
    if (0 == n)
          exit(0);

I'm shure there's a more Xlibish way of doing this but i haven't written
raw X code for quite a while.


> Btw, I got xemacs, I'm taking the plunge... 

Have fun

  Ralf Mattes

> Best regards,
> 
> == Dave Phillips
> 
> 	The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm
> 	The Linux Soundapps Site at http://linux-sound.org