When using the original Xwilling-script in 9/10 cases
xdm displays:
"willing, but /etc/X11/xdm/Xwilling failed"

I took a look into xc/programs/xdm/policy.c to find out whats wrong there
and I came to the conclusion the the fgets returns
NULL. Reading twice or even more times with fgets fixed the error fine.


Any hints on how submitting a fully acceptable patch and what to 
take notice of while fixing the line 134:
?
As far as I can see the fgets is interrupted by some signal
(didnt find out what signal exactly yet), reads some bytes
(8-10 in average cases), does not terminate the string with \0
and returns NULL and EINTR is set (only on BSD relevant as linux' 
glibc doesnt come up with errno in fgets).

I was thinking of writing my own readlin-function, waiting fo
r
\n here.



ANy ideas, hints, suggestions or questions ?
http://bugs.debian.org/140374  shows my 1st attempt on fixing it
but still contains bugs cause I do ask errno here.


Cheers and greeting from Germany,

Thomas

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to