This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Getting a (FILE *) from a file descriptor
Chris Bitmead wrote:
> Seems a shame to waste a fd carelessly. How about
> dup()
> fclose()
> dup2()
> upon file close so that the fd is only wasted for a fraction of a
> second.
That fraction of a second opens a wide door for race conditions in
multi-threaded programs.
--
Branko Čibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 61) 186 53 49 fax: (+386 61) 186 52 70