From: ian Date: Thu, 5 Jan 2006 02:08:02 +0000 (+0000) Subject: fail somewhat more nicely X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?p=trains.git;a=commitdiff_plain;h=d23f1dc2b62707ef715317cb424cfc8e0ab2458f fail somewhat more nicely --- diff --git a/hostside/stopgap-controller b/hostside/stopgap-controller index ce969a3..8f89014 100755 --- a/hostside/stopgap-controller +++ b/hostside/stopgap-controller @@ -408,9 +408,9 @@ proc changewhat {} { proc onreadcmd {} { if {[gets stdin l] < 0} { if {[eof stdin]} { - puts stderr "stopgap-controller got eof, quitting" puts "GUI exit 0" - exit 0 + fail "stopgap-controller got eof, quitting" + fileevent stdin readable {} } return }