Re: Is iswrite atomic?
Posted in 2000
The complete response by Jonathan certainly gets my vote for the best post of the week! In Message-ID: <Pine.GSO.4.21.0005110904190.25696-100000@anubis>, 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". > [snip] > > So, to answer your question finally, iswrite() is not atomic. > > -- > Yours, > Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h> > Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN > "I don't suffer from insanity; I enjoy every minute of it!" -- Colin Any opinions I state are my own and not necessarily those of my employer