diff options
author | 2008-01-07 01:23:06 +0000 | |
---|---|---|
committer | 2008-01-07 01:23:06 +0000 | |
commit | a64e00957fbdb68119d9910438b291844005a429 (patch) | |
tree | 7ad7f1775593b200719aa4e6c569ee3c927f9e9d | |
parent | write out script_data to file (diff) | |
download | scire-a64e00957fbdb68119d9910438b291844005a429.tar.gz scire-a64e00957fbdb68119d9910438b291844005a429.tar.bz2 scire-a64e00957fbdb68119d9910438b291844005a429.zip |
handle a non-zero exitcode from the communicator
svn path=/branches/new-fu/; revision=342
-rwxr-xr-x | client/scireclient.pl | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |