eventscript: make sure we die when we timeout.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Sep 2010 03:14:21 +0000 (12:44 +0930)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 3 Sep 2010 01:42:56 +0000 (11:42 +1000)
commit35b719c8e2d97ec7014401a132937a01a1f2da7f
tree8a8984a3e79b83781f3a41b5a6dd59793a4cba29
parentd0c57b915d225bcf4c924ff57df7abb99b3ebfd1
eventscript: make sure we die when we timeout.

Volker noticed that system() can hang on a futex: we do this inside a
signal handler simply to dump extra diagnostics when we timeout, which is
very questionable but usually works.

Add a timeout of 90 seconds: after that, commit suicide.
(This is a workaround for this branch: master does this correctly).

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