[Swift-user] Too many open file descriptors

Justin M Wozniak wozniak at mcs.anl.gov
Fri Aug 21 14:42:01 CDT 2015


Hi
     Sorry about that- it looks like we missed the point in the docs for 
this new Tcl feature that it returns an open file descriptor.  We will 
close it as you suggest.
     Thanks
     Justin

On 08/21/2015 08:19 AM, Peter Wortmann wrote:
> Hi swift-user
>
> We are using Swift/T in a way that does a lot of "@stdout=..."
> indirections. However, this seems to lead to Turbine running out of file
> descriptors at a certain point. A bit of poking showed that this calls
> through to "mktemp" in "files.tcl", which states:
>
>    # This can fail with "too many open files"
>    file tempfile result $tmpdir/.turbine
>
> Is this a known bug? I tried to work around it, and simply closing the
> returned file channel seems to work:
>
>    close [file tempfile result $tmpdir/.turbine]
>
> Is there a reason to keep it open?
>
> Greetings,
>    Peter
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user


-- 
Justin M Wozniak




More information about the Swift-user mailing list