home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10313 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.4 KB

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