On Thu, Jan 17, 2013 at 08:42:51AM +0000, Yi Qingliang wrote: > On Wednesday, January 16, 2013 08:56:17 AM Dr. Werner Fink wrote: > > On Wed, Jan 16, 2013 at 10:08:50AM +0000, niqingliang2...@gmail.com wrote: > > > On Wednesday, January 16, 2013 09:44:10 AM niqingliang2...@gmail.com > wrote: > > > > On Tuesday, January 15, 2013 04:56:44 PM Dr. Werner Fink wrote: > > > > > On Tue, Jan 15, 2013 at 11:11:21PM +0800, Yi Qingliang wrote: > > > > > > On Tuesday, January 15, 2013 12:16:46 PM Dr. Werner Fink wrote: > > > > > > > On Tue, Jan 15, 2013 at 06:42:26PM +0000, > > > > > > > niqingliang2...@gmail.com > > > > > > why the close(fd) freeze for 30seconds? > > > is it related with serial setting? or serial driver? > > > > That more kernel driver related. Sorry, but I'm not familiar with this kind > > of serial device nor driver :( > which tty the sysvinit will open if the kernel parameter is 'console=ttySAC0"? > I debugged the sysvinit, it open the /dev/console, is that normal?
Yes as /dev/console is the system console and the real devices used for the console are handled by the kernel. Compare with e.g. cat /proc/consoles which will list all devices used for the system console[1]. Even printers could be used for a channel of the system console. Werner [1] https://patchwork.kernel.org/patch/461091/ -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr