Re: Is iswrite atomic?
Posted in 2000
Jonathan Leffler wrote: > > On Wed, 10 May 2000, Rod Bruce wrote: > >Can anyone tell me whether iswrite() is atomic, ie, if it is > >interupted by a kill, will it be ok or will it possibly leave > >the data and/or index file corrupt? > > Good question! > > I don't see any mention of signals in the C-ISAM documentation, probably > because I don't see any reference to signal() or sigaction() in the > source code either. > > To jump to the conclusion, the answer to your question is "No". > > What follows is an extended explanation of why I think that's the > answer. > > <Hugely extended explanation snipped> > > So, to answer your question finally, iswrite() is not atomic. Slow day at the office Jonathan? :-) Cheers, -- Mark. +----------------------------------------------------------+-----------+ | Mark D. Stock mailto:mdstock@mydas.freeserve.co.uk |//////// /| | http://www.informix.com http://www.informixhandbook.com |///// / //| | http://www.iiug.org +-----------------------------------+//// / ///| | |What year 2000 bug? year 2000 bug? |/// / ////| | |year 2000 bug? year 2000 bug? year |// / /////| | |2000 bug? year 2000 bug? year 1900 |/ ////////| +----------------------+-----------------------------------+-----------+