From a64e00957fbdb68119d9910438b291844005a429 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Mon, 7 Jan 2008 01:23:06 +0000 Subject: handle a non-zero exitcode from the communicator svn path=/branches/new-fu/; revision=342 --- client/scireclient.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/scireclient.pl b/client/scireclient.pl index 304051e..b4b0227 100755 --- a/client/scireclient.pl +++ b/client/scireclient.pl @@ -28,6 +28,15 @@ sub run_main { check_job_dir(); my $exitcode = talk_to_server(); + if($exitcode != 0) { + if($conf{daemon}) { + # We'll schedule another pass here later + } else { + debug("We couldn't communicate with the server...exiting!"); + exit(1); + } + } + } sub talk_to_server { -- cgit v1.2.3-65-gdbad