eventscript: fix case where we fail to create child for some reason
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Apr 2010 01:05:04 +0000 (10:35 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Apr 2010 01:05:04 +0000 (10:35 +0930)
commitfcc63e04beb427c1f48deae6d3d98c78a2a67949
tree4456c261ab99fb35d2719d455e4aaa95a3d6d62e
parent480af69b63b9162c85d8e04461ca9e4a083c04a4
eventscript: fix case where we fail to create child for some reason

Initialize the child pid to 0 so destructor doesn't try to kill it:

server/eventscript.c:565 Sending SIGTERM to child pid:139742328
Failed to kill child process for eventscript, errno No such process(3)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/eventscript.c