tap: invoke downscript when we exit abnormally
commit8af8ce4d6116e3d46ad298ca8fe50d3b515b1aac
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 17 Mar 2010 23:00:45 +0000 (17 18:00 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Mar 2010 20:27:38 +0000 (19 15:27 -0500)
treefc66597b1980b5257f21dc733e0a59227742481a
parentd7234f4d7e373a708e1df9ab565a71b71b189025
tap: invoke downscript when we exit abnormally

Right now, downscript is not invoked reliably.  If you execute 'quit' from the
monitor, it won't be invoked.

This fixes that by converting tap to use an exit_notifier to execute the
downscript.  In this case, allowing an exit notifier to include state is
critically important for the conversion.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/tap.c