From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 57056BC57 for ; Sun, 21 Nov 2010 00:01:03 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAEDi50xQW+UMgWdsb2JhbACUYo4DFQEBFiIiuh2FSwSKXg X-IronPort-AV: E=Sophos;i="4.59,230,1288566000"; d="scan'208";a="79785061" Received: from lo.gmane.org ([80.91.229.12]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Nov 2010 00:01:02 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PJwQX-0004kd-R4 for caml-list@inria.fr; Sun, 21 Nov 2010 00:01:01 +0100 Received: from avelizy-155-1-94-54.w90-35.abo.wanadoo.fr ([90.35.89.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 00:01:01 +0100 Received: from sylvain by avelizy-155-1-94-54.w90-35.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 00:01:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Looking for stubs for sendmsg/recvmsg Date: Sat, 20 Nov 2010 23:00:48 +0000 (UTC) Message-ID: References: <87d3q21qe4.fsf@frosties.localnet> <87ipztl2ld.fsf@frosties.localnet> <8739qx88e9.fsf@frosties.localnet> <87lj4n3fdo.fsf@frosties.localnet> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-94-54.w90-35.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) X-Spam: no; 0.00; le-gall:01 stubs:01 le-gall:01 terminates:01 wrote:01 wrote:01 precisely:01 writes:01 writes:01 off-topic:02 let:03 problem:05 tmp:05 anyway:05 closed:10 On 20-11-2010, Goswin von Brederlow wrote: > Sylvain Le Gall writes: >> On 19-11-2010, Goswin von Brederlow wrote: >>> Sylvain Le Gall writes: >>>> On 19-11-2010, Goswin von Brederlow wrote: >>>>> Sylvain Le Gall writes: >>>>>> On 18-11-2010, Goswin von Brederlow wrote: >> >> The best example about this: you cannot delete a file that has an FD >> still open on it. This makes harder to remove temporary file (and this >> piece of code was precisely made to track FD on temporary files, that >> let 1000s of unremoved temp file). >> >> Regards, >> Sylvain Le Gall > > Which again speaks for my solution. The leaked FD will be closed much > faster (before the program terminates) and one can remove the tempfiles > while the program is still running. > I think, this totally off-topic. But anyway, when a program create a temporary files it needs to remove ASAP, itself. I wouldn't deliver a program with a notice like "sometimes FD leaked, not a problem, just remove $TMP/myprogram-*". For the little story, the leaked FD (hence the temporary files) was 400MB each and it quickly get noticed after a few run (and a full HD). Regards, Sylvain Le Gall