nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Re: a problem about nxterm
From: joy
Date: Thu, 14 Dec 2000 11:22:10 +0800

first thanks!
Today I had some experiment for nxterm.
Experiment 1:I commented the following statements:
 in function term_init:
                execv(nargv[0], nargv);
		exit(1);
in function term:
                kp=(GR_EVENT_KEYSTROKE *)&wevent;
			*buf=kp->ch&0x7f;
			write(pipeh, buf,1);
then compile,nxterm can correctly run on assabet.but cannt input.
Experiment 2:then I added exit(1) and run nxterm on assabet.the window flash,then 
dispeared.failed.
Experiment 3:I added execv(nargv[0],nargv),then run nxterm.I was surprised that nxterm

could run correctly on Assabet.Now the code is as same as yesterday.but today it can
run!
so I think that perhaps the assabet board is not stable,isnt it?
BTW,the version of kernel is 2.4.0 test8 and the version of libc is gcc-2.95.2 .


nanogui@linuxhacker.org