unlink safe before close?

Randall Howard rand at mks.UUCP
Tue May 9 06:14:00 AEST 1989


Of course any SVID/POSIX compliant system where unlink before close
is dangerous is just plain buggy.  However, in the real world, systems
like MS-DOS and OS/2 corrupt the file system or give errors, respectively
in this case.  As a result, and in the interests of maximal portability
it is always a good idea to close files before unlinking.

-- 
     ll  // // ,~/~~\'   Randall Howard
    /ll/// //l' `\\\     Mortice Kern Systems Inc.
   / l //_// ll\___/     35 King Street North, Waterloo, ON, Canada N2J 2W9
O_/                      519/884-2251, FAX 519/884-8861, uunet!watmath!mks!rand



More information about the Comp.unix.wizards mailing list