eventscript: fix bug when script is aborted
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Dec 2009 03:43:09 +0000 (14:13 +1030)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 18 Dec 2009 03:48:41 +0000 (14:48 +1100)
commit565b2cda11690550560bdd41fcfad826d1ae4a3d
treebd78bc954ff0dd7a84346b99451b922416cdea2b
parente757b7c4bf1666169e58dda69ff286ccdb4372db
eventscript: fix bug when script is aborted

Another corner case when we terminate running monitor scripts to run
something else: logging can flush the output and we write to a NULL
pointer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit eb22c34bccc8a04fcf63efa2bc48d9788709382e)
ctdb/server/eventscript.c