Changeset 7969


Ignore:
Timestamp:
03/22/19 10:31:07 (3 months ago)
Author:
stefan
Message:

made the program test for existence of SeparatePRTdir directory and exit if not present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/seismic_processing/hyp2000_mgr/hyp2000_mgr.c

    r7838 r7969  
    4848#include <stdlib.h> 
    4949#include <string.h> 
     50#include <sys/stat.h> 
     51#include <sys/types.h> 
    5052#include <time.h> 
     53#include <errno.h> 
     54#ifndef _WINNT 
     55#include <unistd.h> 
     56#endif 
    5157 
    5258#include "earthworm.h" 
     
    112118#define ERR_PIPEPUT       107   /* Trouble writing to pipe                 */ 
    113119 
    114 #define VERSION_NUMBER "1.48 2019/2/19 hypoinverse-1.43" 
     120#define VERSION_NUMBER "1.49 2019/3/22 hypoinverse-1.43" 
    115121 
    116122 
     
    399405   int    success; 
    400406   int    i; 
     407   struct stat statbuf;  /* for testing the existence of the PRT dir if option used */ 
     408 
    401409 
    402410/* Set to zero one init flag for each required command 
     
    483491                             "hyp2000_mgr: Could not calloc() space for PRT filename array." 
    484492                             " Exiting.\n" ); 
     493                      exit( -1 ); 
     494                } 
     495                if (lstat(PRTdir, &statbuf) < 0) 
     496                { 
     497                      logit("", "hyp2000_mgr: Path stat error on <%s>: %s\n", PRTdir, strerror(errno)); 
    485498                      exit( -1 ); 
    486499                } 
Note: See TracChangeset for help on using the changeset viewer.