Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2001 17:32:49 -0700 (PDT)
From:      Peter Avalos <pavalos@theshell.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/30581: top(1) races when it loses its terminal
Message-ID:  <200109150032.f8F0Wnk22482@radium.theshell.com>

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

>Number:         30581
>Category:       bin
>Synopsis:       top(1) races when it loses its terminal
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 14 17:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Peter Avalos
>Release:        FreeBSD 4.4-RC i386
>Organization:
none
>Environment:
System: FreeBSD radium.theshell.com 4.4-RC FreeBSD 4.4-RC #0: Tue Aug 21 16:51:12 PDT 2001 pavalos@radium.theshell.com:/usr/obj/usr/src/sys/RADIUM i386


>Description:
	top(1) uses up all the cpu it can when it loses its terminal.
>How-To-Repeat:
	Disconnect from an ssh session while running top as root. I can't
get this to happen when run as a normal user.

	Everything working normally (terminal connected):
root     23936  1.5  0.2  2096 1312  p8  S+    5:22PM   0:00.21 top

	Now disconnect from the ssh session:
root     23936 94.8  0.2  2096 1312  p8- R     5:22PM   3:12.76 top
>Fix:
	I'm not sure. It looks like there's some read(2)'s that don't
get their return values checked throughout the code, but I'm not sure
if that will fix it.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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