From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 191CFBC37 for ; Thu, 2 Jul 2009 14:43:51 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEBAHRITEpDww+vmWdsb2JhbACRHodvAQEBAQEICwoHE6QOgRqQYAEFAwGEDQU X-IronPort-AV: E=Sophos;i="4.42,333,1243807200"; d="scan'208";a="30554433" Received: from web111508.mail.gq1.yahoo.com ([67.195.15.175]) by mail3-smtp-sop.national.inria.fr with SMTP; 02 Jul 2009 14:43:50 +0200 Received: (qmail 40991 invoked by uid 60001); 2 Jul 2009 12:43:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1246538628; bh=jECq2FRoV4Stv1H+LdIjxOXtn1gOxU4Bz9cdQOT7c40=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=anVswlOLzfJHHuVTcDEHkexvZDVsXOTXIZB+8gB5mceARiriiYGEBU4cU5ZJJXN4EGYvNqIoJzIFbwS3XDrXnXvioelC5Xfi3YilFuH5idPSwft+S2kKsVL2+68I13DagGFHfojeFxMBeUpvHKgP9OY2s8lMGoy1Gp65wHn/VlM= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XRALFjirdUYtzhxA0PoRbpSnPg4RbGCIZb1PdcqFUUEK7Kf6b6Yt4REv3TbzL0H6eLbN2XGjYMADL5XDNK7/CjnifnuNLAKhH8ulv8bCz1tMlu00QGrEhhjd7nVLccmNbzGTIkKsh02NSUADehEz5HDork4w7L1/XzqT9Pqlq9E=; Message-ID: <779233.40880.qm@web111508.mail.gq1.yahoo.com> X-YMail-OSG: OlQAisIVM1lxsLY4YINYva5zEZoZZUvnQWF_ophJ_a4VHdGucSXu6t3jwcI7zVnKgBymMf4SEzt5qjZoTtqK28QBe6XX1ESsyLDwc30kp9qsTifcpQrYMfDQJUBewY04TVpKs_bU0IE.08OQtZsFIYXeUa6Bm6P5trO7W9qhIhNvjlfRTktw8c99f2j9RD3ucNcpDzRIJ9xmzIvxsGEdmLptBa6R7d4hfguqT8Rap4nheYENBKrvjpthIBKbGzR1Nr2IqGocQoEQgnKmZf3562O0E7pWZp_PVSPdxyBGT79G2Q5YNkdbrj7N Received: from [213.205.71.59] by web111508.mail.gq1.yahoo.com via HTTP; Thu, 02 Jul 2009 05:43:48 PDT X-Mailer: YahooMailClassic/5.4.17 YahooMailWebService/0.7.289.15 Date: Thu, 2 Jul 2009 05:43:48 -0700 (PDT) From: Dario Teixeira Subject: Re: [Caml-list] file mapped bigarray and Unix.unlink To: matthieu.dubuget@gmail.com, David MENTRE Cc: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; bigarray:01 recursive:01 cheers:01 discomfort:98 unix:01 caml-list:01 seems:03 sync:04 sync:04 thread:06 efficiency:08 issuing:10 wrong:10 actually:10 file:11 Hi,=0A=0A> > The strategy I adopted is to spawn a recursive thread that=0A>= > periodically try to erase the file until success.=0A> =0A> That seems th= e wrong solution to me. The unlink syscall should work=0A> immediately or y= ou have another reason why it only works after a=0A> certain time.=0A=0AI s= econd David's discomfort. Have you considered issuing a sync after=0Athe u= nlink? For efficiency reasons the OS may not actually be deleting=0Athe fi= le immediately after the unlink; the sync should force it to do it.=0A=0ACh= eers,=0ADario Teixeira=0A=0A=0A=0A