Mail Archives: djgpp/1996/09/04/10:27:22
Errors-To: postmaster AT ns1
Xref: news2.mv.net comp.os.msdos.djgpp:8235
From: elric AT wheel DOT dcn DOT davis DOT ca DOT us (Jeffrey Taylor)
Newsgroups: comp.os.msdos.djgpp
Date: 3 Sep 1996 22:02:51 GMT
Organization: Davis Community Network - Davis, California, USA
Lines: 19
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960901090156 DOT 21204C-100000 AT is>
Nntp-Posting-Host: wheel.dcn.davis.ca.us
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Dj-Gateway: from newsgroup comp.os.msdos.djgpp
Content-Type: text
Content-Length: 729
Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
:
: On Thu, 29 Aug 1996, Erik Max Francis wrote:
:
: > Or just use fflush.
:
: `fflush' is not enough when redirection is used, or when you invoke a
: child program that reads from a file written by the parent. You should
: either close the file or call `fsync' to ensure DOS flushes its buffers.
: `fflush' only flushes the DJGPP buffers, but not the DOS ones.
If you are using SMARTDRV, its buffers need to be flushed too. Off the
top of my head, I would spawn a call to run "smartdrv /c"
As of DOS 6.20 DOS asks SMARTDRV to flush its buffers before it displays the
command prompt when a program exits.
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -