Changeset 83 for trunk/pbs_drmaa/job.c


Ignore:
Timestamp:
01/07/13 17:03:23 (11 years ago)
Author:
mmamonski
Message:

PBS Sumbit API i single class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/job.c

    r71 r83  
    319319        struct attrl *i = NULL; 
    320320        char pbs_state = 0; 
    321         int exit_status = -2; 
     321        int exit_status = -101; 
    322322        const char *cpu_usage = NULL; 
    323323        const char *mem_usage = NULL; 
     
    394394                fsd_log_debug(( "pbs_state: %c", pbs_state )); 
    395395 
    396         if( exit_status != -2 ) 
     396        if( exit_status != -101 ) 
    397397         { 
    398398                fsd_log_debug(( "exit_status: %d", exit_status )); 
    399399                self->exit_status = exit_status; 
     400 
     401                if (self->exit_status < 0) 
     402                 { 
     403                        self->exit_status = -1; 
     404                        fsd_log_error(("ExitStatus = %d, probably system problem, report job %s to the local administrator", exit_status, self->job_id)); 
     405                 } 
     406 
    400407         } 
    401408        if(pbs_state){ 
     
    405412                                self->flags &= FSD_JOB_TERMINATED_MASK; 
    406413                                self->flags |= FSD_JOB_TERMINATED; 
    407                                 if (exit_status != -2) { /* has exit code */ 
     414                                if (exit_status != -101) { /* has exit code */ 
    408415                                        if( self->exit_status == 0)  
    409416                                                self->state = DRMAA_PS_DONE; 
Note: See TracChangeset for help on using the changeset viewer.