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.

PyTables registers a cleanup handler (it flushes and closes open files)
that runs on program exit.  Python is only able to run the handler on
normal program termination or on exception termination.  Interrupting a
process with SIGINT (Control-C) is also seen as an exception, so you
could try to kill your process using ``kill -INT`` or ``kill -2``.  This
may be helpful in your particular case.  Bye!

::

        Ivan Vilata i Balaguer   >qo<   http://www.carabos.com/
               Cárabos Coop. V.  V  V   Enjoy Data
                                  ""

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to