Commit 073a9255 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Allow the exact HPC tix filename to be given in the HPCTIXFILE env var

parent f976971c
......@@ -174,14 +174,20 @@ readTix(void) {
static void hpc_init(void) {
char *hpc_tixdir;
char *hpc_tixfile;
if (hpc_inited != 0) {
return;
}
hpc_inited = 1;
hpc_pid = getpid();
hpc_tixdir = getenv("HPCTIXDIR");
hpc_tixfile = getenv("HPCTIXFILE");
if (hpc_tixdir != NULL) {
/* XXX Check results of mallocs/strdups, and check we are requesting
enough bytes */
if (hpc_tixfile != NULL) {
tixFilename = strdup(hpc_tixfile);
} else if (hpc_tixdir != NULL) {
/* Make sure the directory is present;
* conditional code for mkdir lifted from lndir.c
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment