Browse thread
[Caml-list] GC and file descriptors
-
Dustin Sallings
- David Fox
- Nicolas George
- Mikael Brockman
[
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: | Nicolas George <nicolas.george@e...> |
| Subject: | Re: [Caml-list] GC and file descriptors |
Le tridi 23 brumaire, an CCXII, Dustin Sallings a écrit :
> let r = Unix.open_process_in ("tput " ^ x)
> and buf = String.create 8 in
> let len = input r buf 0 8 in
> close_in r;
BTW, you should use Unix.close_process_in and not close_in, or you will
leave zombies.