Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 1997 02:50:14 -0200 (EDT)
From:      Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/2413: patches to "top" package/port
Message-ID:  <199701080450.CAA05419@gaia.coppe.ufrj.br>
Resent-Message-ID: <199701080500.VAA12580@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2413
>Category:       ports
>Synopsis:       Cannot redirect "top" output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan  7 21:00:00 PST 1997
>Last-Modified:
>Originator:     Joao Carlos Mendes Luis
>Organization:
					Jonny

--
Joao Carlos Mendes Luis			jonny@gta.ufrj.br
+55 21 290-4698 ( Job )			jonny@cisi.coppe.ufrj.br
Network Manager				UFRJ/COPPE/CISI
Universidade Federal do Rio de Janeiro
>Release:        FreeBSD 2.1.6-RELEASE i386
>Environment:

	Creating a system monitor embedded in a vty.

>Description:

	Cannot redirect output to another terminal.

>How-To-Repeat:

# top > /dev/ttyv5
<change to ttyv5>
<press any key>

"top" stops, waiting for a key in the terminal from where it has
been launched.

>Fix:
	
--- top.c.org   Wed Jan  8 02:20:44 1997
+++ top.c       Wed Jan  8 02:20:56 1997
@@ -652,7 +652,7 @@

                /* set up arguments for select with timeout */
                FD_ZERO(&readfds);
-               FD_SET(1, &readfds);            /* for standard input */
+               FD_SET(0, &readfds);            /* for standard input */
                timeout.tv_sec  = delay;
                timeout.tv_usec = 0;


BTW: I have already contated the original author and sent him this patch.
>Audit-Trail:
>Unformatted:
Joao Carlos Mendes Luis



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701080450.CAA05419>