I have a Perl program that createse lots of forks (18 in parallel and about 2000 during its total lifetime). I've noticed the following exception:

Error in tempdir() using /tmp/XXXXXXXXXX: Have exceeded the maximum number of attempts (1000) to open temp file/dir at