minor feeder bug

svn path=/trunk/boinc/; revision=513
This commit is contained in:
David Anderson 2002-10-21 22:45:54 +00:00
parent a17a22730f
commit 0d1bb36f4d
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ Existing applications in common languages (C, C++, Fortran)
can run as BOINC applications with little or no modification.
An application can consist of several files
(e.g. multiple programs and a coordinating script).
New versions of applications can be deployed without participant involvement.
New versions of applications can be deployed with minimal participant involvement.
<li>
<b>Security</b>
<br>

View File

@ -65,7 +65,7 @@ int check_trigger(SCHED_SHMEM* ssp) {
assert(ssp!=NULL);
f = fopen(TRIGGER_FILENAME, "r");
if (!f) return 0;
fread(buf, 1, 256, f);
fgets(buf, 256, f);
fclose(f);
if (!strcmp(buf, "<quit/>\n")) {
detach_shmem((void*)ssp);
@ -146,7 +146,7 @@ void feeder_loop(SCHED_SHMEM* ssp) {
printf("feeder: adding result %d in slot %d\n", result.id, i);
retval = db_workunit(result.workunitid, wu);
if (retval) {
printf("feeder: can't read workunit %d: %d\n", result.workunitid, result);
printf("feeder: can't read workunit %d: %d\n", result.workunitid, retval);
continue;
}
ssp->wu_results[i].result = result;