Version française
Home     About     Download     Resources     Contact us    
Browse thread
Closing all open file descriptors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Closing all open file descriptors
Oliver Bandel wrote:

> If you think you need all this for your daemon,
> I ask: why do you think you need it? If you write it, you have
> full control over all files you open

No, thats not right. I can write a program, that opens a bunch
of file descriptors, and then exec his program and his program
will inherit all open file descritors.

For instance:

    http://cr.yp.to/daemontools/fghack.html

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"The happiness you have demanded is now mandatory."
    -- Jello Biafra