home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!unido!news.Hamburg.Germany.EU.net!easix!umunk!udo
- From: udo@umunk.GUN.de (Udo Munk)
- Newsgroups: comp.unix.questions
- Subject: Re: reliable write()
- Message-ID: <9208227218@umunk.GUN.de>
- Date: 24 Aug 92 03:30:18 GMT
- References: <1992Aug14.233256.21918@coe.montana.edu>
- Organization: umunk (private)
- Lines: 20
- X-Newsreader: Tin 1.1 PL4
-
- osycs@giac1.oscs.montana.edu (Craig Spannring) writes:
- : In article <9208141294@umunk.GUN.de> udo@umunk.GUN.de (Udo Munk) writes:
- : >
- : >What about calling system("sync"); after a flush of the buffers for
- : >systems which have neighter?
- :
- : The Ultrix man page for sync(2) says the system call only schedules
- : all pending disk output. It may return before the writes actually
- : occur. I assume that /bin/sync relies on sync(2) to perform the actual
- : work.
-
- Hm, my Coherent manual only says that sync writes the data from the kernels
- buffers to disk. Nothing on when it returns. Maybe this works with some
- systems and with others not, was only an idea...
- --
- Udo Munk | voice: +49 2131 275348 | uucp: +49 2131 278869
- Oberstr. 21 | mail : udo@umunk.GUN.de | 2400/1200/300 8N1
- 4040 Neuss 1 | ...!{mcshh,smurf,unido}!easix!umunk!udo | MYNAME=bbsuser
- Fed. Rep. of | CompuServe: 100021,2515 | login: uucp
- Germany | at first connect get ~/info and ~/files| pwd: public
-