Too many open files during import

Juan F. Codagnone juam at arnet.com.ar
Sun Jun 8 05:14:01 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi!

gnupg --import  doesn't close the files after importing all the keys of a
file.
Eg:
    $ for i in `seq 0 2000`; do touch $i; done
    $ gpg --import *
    ....
    gpg: can't open `p/898': Too many open files
    gpg: can't open `p/899': Too many open files

open("1925", O_RDONLY|O_LARGEFILE)      = 1021
read(1021, "", 8192)                    = 0
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "no valid OpenPGP data found.\n", 29no valid OpenPGP data found.
) = 29
open("1926", O_RDONLY|O_LARGEFILE)      = 1022
read(1022, "", 8192)                    = 0
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "no valid OpenPGP data found.\n", 29no valid OpenPGP data found.
) = 29
open("1927", O_RDONLY|O_LARGEFILE)      = 1023
read(1023, "", 8192)                    = 0
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "no valid OpenPGP data found.\n", 29no valid OpenPGP data found.
) = 29
open("1928", O_RDONLY|O_LARGEFILE)      = -1 EMFILE (Too many open files)
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "can\'t open `1928\': Too many open"..., 39can't open `1928': Too
manyopen files
) = 39

I don't know howto handle iobuf (and what file_filter_ctx_t is), so i can't
send you a patch (yet! :*D ).


Best Wishes,
	Juan.

ps. yes. i know that i can do: for i in *; do gpg --import $i ; done ...

- --
Buenos Aires, Argentina                           8°C with winds at 5 km/h WSW
-----BEGIN PGP SIGNATURE-----

iD8DBQE+4pwKjSlJEriOToYRAvWvAJ40DM6h5ksZBHvEj2ndl0zv1vpcjQCfT/s0
pt1xArbJalk1AD/p+66R8LQ=
=Y6uA
-----END PGP SIGNATURE-----





More information about the Gnupg-devel mailing list