From 65ec42da6cc42498af0e708f680ecc1befd38aaa Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 14 Apr 2014 12:33:43 -0700 Subject: [PATCH] remote job submission: fix bug --- html/user/submit_rpc_handler.php | 2 +- tools/create_work.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/html/user/submit_rpc_handler.php b/html/user/submit_rpc_handler.php index a8b83a40a5..ca3c0ecb97 100644 --- a/html/user/submit_rpc_handler.php +++ b/html/user/submit_rpc_handler.php @@ -186,7 +186,7 @@ function submit_jobs($jobs, $template, $app, $batch_id, $priority) { } fwrite($h, $x); $ret = pclose($h); - if ($ret < 0) { + if ($ret) { xml_error(-1, "BOINC server: create_work failed"); } } diff --git a/tools/create_work.cpp b/tools/create_work.cpp index 1119ac14c6..3a49818e49 100644 --- a/tools/create_work.cpp +++ b/tools/create_work.cpp @@ -139,6 +139,8 @@ void JOB_DESC::parse_cmdline(int argc, char** argv) { for (int i=0; i