9fans archive / 1996 / 02 / 4 /    prev next

From: dhog@pla... dhog@pla...
Subject: bug in seemail, with fix
Date: Tue, 6 Feb 1996 07:29:26 -0500

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);