From cse.psu.edu!9fans-outgoing-owner Tue Feb  6 07:01:35 1996
Received: from colossus.cse.psu.edu ([130.203.1.2]) by cannon.ecf.toronto.edu with SMTP id <9926>; Tue, 6 Feb 1996 07:01:34 -0500
Received: by colossus.cse.psu.edu id <78572>; Tue, 6 Feb 1996 06:44:11 -0500
Received: from plan9.cs.su.oz.au ([129.78.96.3]) by colossus.cse.psu.edu with SMTP id <78570>; Tue, 6 Feb 1996 06:43:44 -0500
Date:	Tue, 6 Feb 1996 07:29:26 -0500
From:	dhog@plan9.cs.su.oz.au
To:	9fans@cse.psu.edu
Subject: bug in seemail, with fix
Message-Id: <96Feb6.064344est.78570@colossus.cse.psu.edu>
Sender: owner-9fans@cse.psu.edu
Precedence: bulk
Reply-To: 9fans@cse.psu.edu
Status: RO

There is a file descriptor leak in seemail, which causes there to
be a complete absence of any faces after we run out of file
descriptors.  The names and times still appear, but the area where
the face should be is blank.

Here is a diff which plugs the leak:

diff /n/dump/1996/0206/sys/src/cmd/seemail/io.c .
109c109,110
< 		if(clean && (strcmp(&buf[1], machine) == 0))
---
> 		if(clean && (strcmp(&buf[1], machine) == 0)) {
> 			Bterm(mf);
110a112
> 		}
125a128
> 			Bterm(mf);


