Path: utzoo!utgpu!watmath!mks!rand From: rand@mks.UUCP (Randall Howard) Newsgroups: comp.unix.wizards Subject: Re: unlink safe before close? Keywords: unlink before close Message-ID: <910@mks.UUCP> Date: 8 May 89 20:14:00 GMT References: <755@unify.UUCP> <1989May7.053222.21348@utfyzx.uucp> Reply-To: rand@mks.UUCP (Randall Howard) Distribution: na Organization: Mortice Kern Systems, Waterloo, Ontario, Canada Lines: 11 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