Hi all,

I'm working on a blackfin board. I'm using user/init/simpleinit as init application. By doing some tests I found that the kernel crash while trying to use an empty inittab file. The message that I receive is
Kernel panic - not syncing: Attempted to kill init!

I've taken a look to the code and I've found the root cause of it:
At the end of read_inittab() function [lines 708-709 of CVS head] there are
        if (numcmd == 0)
                _exit(1);

Now, I could not understand why if the inittab file is empty (or contains only commented lines) the init application should exit with an error code.
Is that a well know behaviour or just a bug?

Maybe is better remove this lines ...
Is there some side effects that I should expecting?


Best Regards

--Michele
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to