static int njobs = 0;
static int cur_event = 0;
static int cur_job = 0;
+static char *test_user;
+static char *test_name;
+static char *dest_host;
+static int dest_port;
#define EVENTS_BUFSIZ 16
#define BUFFSZ 1024
return(-1);
}
- if((nevents=read_events(&events)) < 0)
+ if((nevents=read_events(fd,&events)) < 0)
return(-1);
close(fd);
cur_event = cur_job = 0;
njobs = n;
+ dest_host = host;
+ dest_port = port;
+ test_user = user;
+ test_name = testname;
}
return(0);
cur_job,
&jobid) != 0) {
fprintf(stderr, "produceEventString: error creating jobid\n");
- return(-1)
- }
+ return(-1);
+ }
if((cur_jobid=edg_wlc_JobIdUnparse(jobid)) == NULL) {
fprintf(stderr, "produceEventString: error unparsing jobid\n");
return(-1);