- Timestamp:
- Jun 10, 2012, 2:44:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo/hosts.c
r33963 r34001 15 15 if (!strncmp(argv[1], "purge-temp", MAX(strlen(argv[1]), 3))) { 16 16 glob_t pglob; 17 int ALL_PID = FALSE; 17 18 int PID = getpid(); 18 19 int N; … … 20 21 remove_argument (N, &argc, argv); 21 22 PID = atoi(argv[N]); 23 remove_argument (N, &argc, argv); 24 } 25 26 if ((N = get_argument (argc, argv, "-all-pid"))) { 27 remove_argument (N, &argc, argv); 28 ALL_PID = TRUE; 22 29 remove_argument (N, &argc, argv); 23 30 } … … 60 67 pglob.gl_offs = 0; 61 68 char name[DVO_MAX_PATH]; 62 snprintf (name, DVO_MAX_PATH, "%s/dvo.results.%05d.*.fits", table->hosts[i].pathname, PID); 69 if (ALL_PID) { 70 snprintf (name, DVO_MAX_PATH, "%s/dvo.results.*.*.fits", table->hosts[i].pathname); 71 } else { 72 snprintf (name, DVO_MAX_PATH, "%s/dvo.results.%05d.*.fits", table->hosts[i].pathname, PID); 73 } 63 74 if (VERBOSE) gprint (GP_ERR, "checking %s\n", name); 64 75 glob (name, 0, NULL, &pglob);
Note:
See TracChangeset
for help on using the changeset viewer.
