[Pkg-sysvinit-devel] Bug#584102: OpenVZ vzctl enter dying with: Unable to open pty: No such file or directory; problem with tcgetattr() and startpar
Petter Reinholdtsen
pere at hungry.com
Fri Jun 4 01:10:28 UTC 2010
[Petter Reinholdtsen]
> Why do OpenVZ not provide a working tty to sysvinit/startpar?
I very much welcome someone with OpenVZ knowledge to answer this one,
to know why startpar fail with OpenVZ.
I had a look at the startpar source, I suspect this code in startpar.c
is the failing one:
if (tcgetattr(0, &tio))
{
perror("tcgetattr");
exit(1);
}
The tio struct is used by startpar to run this code:
tio.c_oflag &= ~OPOST;
if (tcsetattr(1, TCSANOW, &tio))
perror("tcsetattr");
Not sure what OPOST does. The manual page states
OPOST Enable implementation-defined output processing.
Guess someone need to test what happen if the tcgetattr() and
tcsetattr() calls are removed. Can you test if parallel booting work
with the two code snippets disabled?
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list