Bug in pg - doesn't close directories

Derek E. Terveer det at hawkmoon.MN.ORG
Sun Jul 23 15:23:55 AEST 1989


In article <5941 at wolfen.cc.uow.oz>, david at wolfen.cc.uow.oz (David E. A. Wilson) writes:
> Repeat-by:
> 	Give pg more directories than the system allows open fd's.
> (64 should be enough on any system). The first N will have the message:
> 	pg: filename is a directory
> while the remainder will have:
> 	filename: Too many open files

I'm running microport System V/386 3.0e (sys V R3.0) and i get an invalid
argument instead:

$ mkdir /tmp/$$; cd /tmp/$$
$ for i in $(iota 1 64); do mkdir $i; done
$ pg *
pg: 1 is a directory
pg: 10 is a directory
	etc..
pg: 24 is a directory
pg: 25 is a directory
26: Invalid argument
27: Invalid argument
28: Invalid argument

	etc...
-- 
Derek Terveer 	    det at hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det
		    w(612)681-6986   h(612)789-8643

"A proper king is crowned" -- Thomas B. Costain



More information about the Comp.bugs.sys5 mailing list