diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -234,6 +234,8 @@ int main(int argc, char *argv[]) // Main loop while(!slave_state.quit) { + outputExt = NULL; + multiio_poll(multiio, 15000); if(slave_state.quit) @@ -251,6 +253,7 @@ int main(int argc, char *argv[]) // jobnum = remoteio_read(jobnum); /* Set jobnum from remoteio (we could use info from struct, but we need this info to download the xmlfile */ // framenum = remoteio_read(jobnum); /* Set framenum from remoteio */ // outputExt = remotio)read(outputExt); /* Set output extension from remotio */ + outputExt = strdup("jpg"); if(DEBUG) fprintf(stderr, "Preparing to render frame %d in job %d\n", framenum, jobnum); @@ -363,6 +366,8 @@ int main(int argc, char *argv[]) delete_jobdata(jobnum, datadir); } + free(outputExt); + sleep(5); // Poll 5 seconds. @TODO: Remove all polling }