*/
static void *job_thread(void *arg)
{
- time_t now;
JCR *jcr = (JCR *)arg;
pthread_detach(pthread_self());
- time(&now);
sm_check(__FILE__, __LINE__, True);
if (!acquire_resource_locks(jcr)) {
}
Dmsg0(200, "=====Start Job=========\n");
- jcr->start_time = now; /* set the real start time */
+ jcr->start_time = time(NULL); /* set the real start time */
Dmsg2(200, "jcr->JobStatus=%d %c\n", jcr->JobStatus, (char)jcr->JobStatus);
if (job_cancelled(jcr)) {
update_job_end_record(jcr);
/* */
#define VERSION "1.30"
#define VSTRING "1"
-#define BDATE "20 March 2003"
-#define LSMDATE "20Mar03"
+#define BDATE "21 March 2003"
+#define LSMDATE "21Mar03"
/* Debug flags */
#define DEBUG 1