Browse thread
Closing all open file descriptors
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-09-15 (09:25) |
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