nanogui: running nano-x


Previous by date: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr
Next by date: 30 Jul 2004 22:39:35 +0100 Re: running nano-x - SOLVED, Hinko Kocevar
Previous in thread: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr
Next in thread: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr

Subject: Re: [nanogui] running nano-x
From: Hinko Kocevar ####@####.####
Date: 30 Jul 2004 22:39:35 +0100
Message-Id: <410AC00D.4020706@iskramedical.si>

Greg Haerr wrote:
>>: I added some printf lines to srvmain.c and found out that errno returned
>>: after first loop is always 22 - EINVAL; select() man page says that it
>>: is invalid nr of fds passed to select(), but without keyb and mouse
>>: setsize = 3.
> 
> 
> Perhaps the select() is failing because your kernel
> isn't configured for sockets or networking?
> 
my .config in 2.4.19 says
...
CONFIG_UNIX=y
CONFIG_INET=y
...

> If you configure mwin with the basic tty driver, does
> this still happen?
> 

Will try...

> I'm thinking that since setsize=3, and un_sock is 3,
> then there's an issue with the kernel complaining
> about selecting on that (the client accept) socket descriptor.
> 

setsize is set only here
	if (un_sock > setsize) setsize = un_sock;

and additionaly if client connects, here
	if(curclient->id > setsize) setsize = curclient->id;

and setsize+1 is later passed to select()...


I ran strace on nano-X and this line does not seem right:

select(4, [3], NULL, NULL, {3813670912, 3785383936}) = -1 EINVAL 
(Invalid argument)

-> exceptfds and timeout are bogus !?

I belive it should read
select(4, [3], NULL, NULL, NULL)

regards,
h

-- 
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"Aì rén"	|	[Analects XII:22]

Previous by date: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr
Next by date: 30 Jul 2004 22:39:35 +0100 Re: running nano-x - SOLVED, Hinko Kocevar
Previous in thread: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr
Next in thread: 30 Jul 2004 22:39:35 +0100 Re: running nano-x, Greg Haerr


Powered by ezmlm-browse 0.20.