From: Dario Teixeira <darioteixeira@yahoo.com>
To: matthieu.dubuget@gmail.com, David MENTRE <dmentre@linux-france.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] file mapped bigarray and Unix.unlink
Date: Thu, 2 Jul 2009 05:43:48 -0700 (PDT) [thread overview]
Message-ID: <779233.40880.qm@web111508.mail.gq1.yahoo.com> (raw)
Hi,
> > The strategy I adopted is to spawn a recursive thread that
> > periodically try to erase the file until success.
>
> That seems the wrong solution to me. The unlink syscall should work
> immediately or you have another reason why it only works after a
> certain time.
I second David's discomfort. Have you considered issuing a sync after
the unlink? For efficiency reasons the OS may not actually be deleting
the file immediately after the unlink; the sync should force it to do it.
Cheers,
Dario Teixeira
next reply other threads:[~2009-07-02 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 12:43 Dario Teixeira [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-02 8:10 Matthieu Dubuget
2009-07-02 8:54 ` [Caml-list] " Matthieu Dubuget
2009-07-02 9:49 ` David MENTRE
2009-07-02 10:15 ` Matthieu Dubuget
2009-07-02 12:48 ` Florian Hars
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=779233.40880.qm@web111508.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=caml-list@inria.fr \
--cc=dmentre@linux-france.org \
--cc=matthieu.dubuget@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox