From: Allen Chan <alydar@users.sourceforge.net>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>, 260111@bugs.debian.org
Subject: [uml-devel] Re: Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0 "
Date: Thu, 29 Jul 2004 22:34:01 -0400 [thread overview]
Message-ID: <200407292234.04279.alydar@users.sourceforge.net> (raw)
In-Reply-To: <200407291430.18818.alydar@users.sourceforge.net>
More details on the problem after some more investigation and
testing... the specific function that was moved from chan_user.c to
chan_kern.c that caused the problem is generic_console_write().
Notice the isatty() calls. They probably explain the earlier
observation that piping or redirecting the stdout gets around the
problem.
int generic_console_write(int fd, const char *buf, int n, void
*unused)
{
struct termios save, new;
int err;
if(isatty(fd)){
tcgetattr(fd, &save);
new = save;
new.c_oflag |= OPOST;
tcsetattr(fd, TCSAFLUSH, &new);
}
err = generic_write(fd, buf, n, NULL);
if(isatty(fd)) tcsetattr(fd, TCSAFLUSH, &save);
return(err);
}
Note also the output for chan_kern.c while the kernel is compiling:
gcc -D__KERNEL__ -I/home/alydar/play/kernel/linux-2.4.26/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__
-DSUBARCH="i386" -D_LARGEFILE64_SOURCE
-I/home/alydar/play/kernel/linux-2.4.26/arch/um/include
-Derrno=kernel_errno
-I/home/alydar/play/kernel/linux-2.4.26/arch/um/kernel/tt/include
-I/home/alydar/play/kernel/linux-2.4.26/arch/um/kernel/skas/include
-nostdinc -iwithprefix include -DKBUILD_BASENAME=chan_kern -c -o
chan_kern.o chan_kern.c
chan_kern.c: In function `generic_console_write':
chan_kern.c:121: warning: implicit declaration of function `isatty'
chan_kern.c:122: warning: implicit declaration of function `tcgetattr'
chan_kern.c:125: warning: implicit declaration of function `tcsetattr'
On Thursday 29 July 2004 02:30 pm, Allen Chan wrote:
>
> It turns out that the following changes caused the problem to show
> up:
>
> arch/um/drivers/chan_kern.c 1.39 Fri 07-16-2004 02:27 PM EDT jdike
> Exp +65 -0
> Moved some non-userspace code from chan_user.c to chan_kern.c.
> arch/um/drivers/chan_user.c 1.33 Fri 07-16-2004 02:27 PM EDT jdike
> Exp +0 -64
> Moved some non-userspace code from chan_user.c to chan_kern.c.
>
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-07-30 2:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-28 7:15 [uml-devel] Re: Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0 " Allen Chan
2004-07-28 17:22 ` Jeff Dike
2004-07-29 18:30 ` Allen Chan
2004-07-30 2:34 ` Allen Chan [this message]
2004-07-30 17:23 ` Jeff Dike
2004-07-30 17:19 ` Matt Clay
2004-07-30 17:43 ` Allen Chan
2004-07-30 18:49 ` Jeff Dike
2004-07-30 21:44 ` Allen Chan
2004-07-31 5:08 ` Jeff Dike
2004-07-31 7:59 ` Matt Clay
2004-08-01 3:28 ` Matt Clay
2004-08-01 3:46 ` Matt Clay
2004-08-01 15:52 ` Jeff Dike
2004-08-01 20:10 ` Matt Clay
2004-08-02 5:15 ` Allen Chan
2004-08-02 7:33 ` Matt Clay
2004-08-02 8:14 ` Matt Clay
2004-08-02 19:19 ` Jeff Dike
2004-08-03 6:06 ` Matt Clay
2004-07-30 23:51 ` Daniel Heemann
2004-07-31 0:30 ` Nicholas Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200407292234.04279.alydar@users.sourceforge.net \
--to=alydar@users.sourceforge.net \
--cc=260111@bugs.debian.org \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.