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 Subject: Re: interrupting with ctrl-C Date: 3 Sep 1996 22:02:51 GMT Organization: Davis Community Network - Davis, California, USA Lines: 19 Message-ID: <50i9ub$qv5@mark.ucdavis.edu> References: NNTP-Posting-Host: wheel.dcn.davis.ca.us To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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" -- ============================================ Without my guitar, I am a poet without arms. - Michael Bloomfield ============================================