Re: 3.5.rc2 tty buffering bug ?

From: Alan Cox
Date: Thu Jun 14 2012 - 12:38:17 EST


> How does 'begin' get printed a second time ?

You've been away from user space too long. Read the documentation for
stdio. Stdio is buffering, both forks get the buffer, both write it.

Try the experiment with write()

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/