diff --git a/src/BuildTiles/Parallel/client.cxx b/src/BuildTiles/Parallel/client.cxx index 51c47d6d..1636cde2 100644 --- a/src/BuildTiles/Parallel/client.cxx +++ b/src/BuildTiles/Parallel/client.cxx @@ -56,13 +56,10 @@ bool do_overwrite = true; void check_master_switch() { string file = work_base + "/Status/MASTER_ON"; - FILE *fp = fopen( file.c_str(), "r" ); - if ( fp == NULL ) { + if ( access( file.c_str(), F_OK ) != 0 ) { cout << "MASTER_ON file, " << file << " not found ... exiting." << endl; exit(0); } - - fclose( fp ); }