From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: File manipulations in Ada.Text_IO
Date: 08 Aug 2005 18:25:13 -0400
Date: 2005-08-08T18:25:13-04:00 [thread overview]
Message-ID: <wcczmrsm5h2.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: vYAHe.783$I04.317@newsread2.news.pas.earthlink.net
Jeffrey Carter <spam@spam.com> writes:
> Larry Kilgallen wrote:
> > But such a function for a non-wildcarded filename is always going
> > to be susceptible to a race condition if the next step would be
> > to open the file. The file might be deleted or created between
> > the test and using the information gained from the test.
>
> That's true in the general case, and something I've never encountered in
> 30 years of actual SW development, including software that was intended
> to manipulate the same file from different applications running at the
> same time.
How do you know? ;-) I mean, if somebody writes code that contains
such a race condition, and their customer trips over it once in a while,
the programmer might never find out about it.
The server process crashes once in a while. Nobody knows why. So the
solution is to restart the server by hand. (Yuck.)
Race conditions, by their very nature, are impossible to detect with any
confidence via testing.
- Bob
next prev parent reply other threads:[~2005-08-08 22:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-01 18:04 File manipulations in Ada.Text_IO Zheng Wang
2005-08-01 18:18 ` Georg Bauhaus
2005-08-01 18:51 ` Jeffrey Carter
2005-08-01 19:32 ` Larry Kilgallen
2005-08-01 21:12 ` Randy Brukardt
2005-08-02 12:31 ` Larry Kilgallen
2005-08-02 2:34 ` Jeffrey Carter
2005-08-08 22:25 ` Robert A Duff [this message]
2005-08-09 2:46 ` Jeffrey Carter
2005-08-02 20:18 ` Gautier Write-only
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox