diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -130,6 +130,10 @@ char *pathtoXml; // Full path to the char *pathtoOutput; // Full path to the output (rendered) file char *outputExt; // Output Extension (e.g., JPG) +char *tarcmd; // Command to run for tar. Migrate to libtar sometime +char *outdir; // Output Directory for tar +char *jobdatapath; // Path to job data + struct distrenjob *myjob; // Structure to hold data gathered from the XML file /* If the server says that every frame for jobnum is finished */ @@ -142,15 +146,11 @@ if( 1 == 0) if(gotframe ==1) { /* @TODO: Add remotio hooks */ - // jobnum = remoteio_read(jobnum); // Set jobnum from remoteio (we could use info from struct, but we need this info to download the xmlfile) + // jobnum = remoteio_read(jobnum); // Set jobnum from remoteio (we could use info from struct, but we need this info to download the xmlfile jobnum = 0; //framenum = remoteio_read(jobnum); // Set framenum from remoteio framenum = 0; - char *tarcmd; - char *outdir; - char *jobdatapath; - fprintf(stderr, "Received %d in job %d, preparing to render...\n",framenum,jobnum); /** @@ -182,7 +182,7 @@ if(gotframe ==1) fprintf(stderr, "Using cached job file...\n"); } - _distren_asprintf(&outdir, "/tmp/distren/job%d", jobnum); /*< @todo free() */ + _distren_asprintf(&outdir, "/tmp/distren/job%d", jobnum); /*< @TODO: free() */ mkdir("/tmp/distren", 0750); /* @TODO: Make this less *nix-specific */ mkdir(outdir, 0750);