Hello, t...@. Seems that bgplg.c leaks file descriptor `fd' in lg_incl(). It opens it, but does not closes.
Index: bgplg.c =================================================================== RCS file: /OpenBSD/src/usr.bin/bgplg/bgplg.c,v retrieving revision 1.7 diff -u -r1.7 bgplg.c --- bgplg.c 10 Oct 2007 13:23:40 -0000 1.7 +++ bgplg.c 7 Jan 2010 21:33:51 -0000 @@ -235,6 +235,7 @@ fwrite(buf, len, 1, stdout); } while(len == BUFSIZ); + close(fd); return (0); }