Hello all,
I'm doing the porting of uClinux to a new architecture and I have a
problem with the sys_close system call.
Indeed, init process open a first time bin/sh to read and execute the
commands of etc/rc.
When sh terminates, the filp_close() function resets the 'next' field of
the console filp.
The problem is when bin/sh is re-opened to show the shell prompt, the
system does an endless loop into check_tty_count()
(driver/char/tty_io.c) because the filp->next filp is 0 instead of list
head.
It seems that something is not updated in a structure somewhere but, I
really don't understand what. The problem is I'm stuck for several days
because of this disfunctionnement.
So perhaps someone have already seen a similar problem or have an idea
which could help me?
It will be difficult for you to bring a solution in these circumstances,
but perhaps you could points me to a way that I haven't explored.
Thanks in advance for your help.
Regards.

-- 
Cortus S.A., Montpellier
email: [email protected]
http://www.cortus.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to