En/na Andrew Straw ha escrit:: > Ivan Vilata i Balaguer wrote: > >>En/na Andrew Straw ha escrit:: >> >>>I've finally had a chance to play around with this a little bit, and >>>I've found the only thing that makes my hdf5 files resistant to my >>>program being terminated (e.g. with "kill -9" while in the middle of a >>>time.sleep() call). >>>[...] >> >>Ummm, killing a process with SIGKILL (kill -9) terminates it ipso facto >>without giving it any chance of flushing, storing unsaved data, or >>cleaning up. It should only be used when a process refuses to terminate >>by other means. > > 'kill -9' should also be used when trying to simulate other events that > bring down my program hard. This is particularly important when checking > if PyTables/HDF5 maintains an internally-consistent file state between > saves. > > It's not that I normally end my programs with 'kill -9', it's just that > I've found PyTables (recent versions, anyway) usually leaves my files in > an internally-inconsistent state and I'm trying to make my application > more fault tolerant. > [...]
OK, sorry for the misunderstanding. ;)
::
Ivan Vilata i Balaguer >qo< http://www.carabos.com/
Cárabos Coop. V. V V Enjoy Data
""
signature.asc
Description: OpenPGP digital signature
