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: | -- (:) |
| From: | Markus E L <ls-ocaml-2006@m...> |
| Subject: | Re: [Caml-list] Closing all open file descriptors |
Oliver Bandel wrote: > Zitat von Mattias EngdegÄ rd <mattias@virtutech.se>: > >> >If you have all your open descriptors in a list, >> >you can close them after a fork. >> >> That approach does not compose well --- descriptors opened by >> a library will be excluded. > [...] > > Oh, I have not seen this last sentence. > > Well, wouldn't the library offer possibilities > to close those files? > > Can you give an example on where you see problems? GTK and the X11 library without doubt open a plethora of file descriptors. If now you fork() in a gtk event handler -- can you tell me what happens to those file descriptors? Regards -- Markus