Ignore:
Timestamp:
01/07/12 22:35:59 (12 years ago)
Author:
mmamonski
Message:

on site fixies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/session.c

    r52 r53  
    2222#endif 
    2323 
     24#include <pwd.h> 
    2425#include <stdlib.h> 
    2526#include <string.h> 
     
    115116                self->max_retries_count = 3; 
    116117                self->wait_thread_sleep_time = 1; 
     118                self->job_exit_status_file_prefix = NULL; 
    117119 
    118120                self->super.load_configuration( &self->super, "pbs_drmaa" ); 
     
    136138                 } 
    137139 
    138                  self->job_exit_status_file_prefix = NULL; 
    139140         } 
    140141        EXCEPT_DEFAULT 
     
    294295          } 
    295296 
    296         if (mkdir(pbsself->job_exit_status_file_prefix, 0600) == -1 && errno != EEXIST) /* TODO it would be much better to do stat before */ 
     297        fsd_log_debug(("Trying to create state directory: %s", pbsself->job_exit_status_file_prefix)); 
     298 
     299        if (mkdir(pbsself->job_exit_status_file_prefix, 0700) == -1 && errno != EEXIST) /* TODO it would be much better to do stat before */ 
    297300          { 
    298                 fsd_log_warning("Failed to create job state directory: %s.  Valid job exit status may not be available in some cases.", pbsself->job_exit_status_file_prefix) 
     301                fsd_log_warning(("Failed to create job state directory: %s. Valid job exit status may not be available in some cases.", pbsself->job_exit_status_file_prefix)); 
    299302          } 
    300303 
Note: See TracChangeset for help on using the changeset viewer.