# CGI temp file lock?

**URL:** <https://www.ruby-forum.com/t/cgi-temp-file-lock/144852>\
**Category:** Rails\
**Created:** [August 3, 2008, 8:32am UTC](https://www.ruby-forum.com/t/cgi-temp-file-lock/144852 "2008-08-03T08:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextpulse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Post date:** [August 3, 2008, 8:32am UTC](https://www.ruby-forum.com/t/cgi-temp-file-lock/144852/1 "2008-08-03T08:32:11Z")

</div>

I am using attachment\_fu. During uploads - it creates (I think its  
attachment\_fu or is it apache?) a tmp file as /tmp/CGI-xxxxxx.  
On some occasion, I noticed that this file is not closed and hence  
the ruby instance resource is never released.  
Any one have any insights on this?

(I am on Fedora 8, rails 1.8, apache2)

thanks.
