Changeset 57 for trunk/pbs_drmaa
- Timestamp:
- 01/08/12 17:38:24 (13 years ago)
- Location:
- trunk/pbs_drmaa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_drmaa/job.c
r56 r57 26 26 #include <string.h> 27 27 #include <unistd.h> 28 #include <sys/stat.h> 28 29 29 30 #include <drmaa_utils/drmaa.h> … … 508 509 pbsdrmaa_job_read_exit_status( const char *job_id, const char *job_state_dir_prefix) 509 510 { 510 char *status_file = NULL, start_file = NULL;511 char *status_file = NULL, *start_file = NULL; 511 512 FILE *fhandle = NULL; 512 513 int exit_status = -1; … … 515 516 516 517 status_file = fsd_asprintf("%s/%s.exitcode", job_state_dir_prefix, job_id); 517 start_file = fsd_asprintf("%s/%s.started", job_ id, job_state_dir_prefix);518 start_file = fsd_asprintf("%s/%s.started", job_state_dir_prefix, job_id); 518 519 519 520 if ((fhandle = fopen(status_file, "r")) == NULL) … … 525 526 { 526 527 exit_status = 143; /* SIGTERM */ 527 fsd_log_info("But start file exist %s. Assuming that job was killed (exit_status=%d).", start_file, exit_status); 528 } 528 fsd_log_info(("But start file exist %s. Assuming that job was killed (exit_status=%d).", start_file, exit_status)); 529 } 530 else 531 { 532 fsd_log_error(("Start file not found: %s", start_file)); 533 } 534 535 529 536 } 530 537 else -
trunk/pbs_drmaa/submit.c
r56 r57 354 354 if( wd != NULL ) 355 355 s += sprintf( s, "cd %s; ", wd ); 356 s += sprintf( s, "touch %s/$PBS_JOBID.started;", ((pbsdrmaa_session_t *)self->session)->job_exit_status_file_prefix) 356 s += sprintf( s, "touch %s/$PBS_JOBID.started;", ((pbsdrmaa_session_t *)self->session)->job_exit_status_file_prefix); 357 357 s += sprintf( s, "%s", executable ); 358 358 if( argv != NULL )
Note: See TracChangeset
for help on using the changeset viewer.