- attached tmp.patch
please honour TMDIR if it is set when creatin tempfiles
Hello,
kma generate temporary files by default using tmpfile (see tmp.c)
problem is that tmpfile does not take care of TMPDIR env var if it is set and only rely on P_tmpdir is /tmp as hardcoded in stdio.h and fallback to /tmp
problem is that on our cluster /tmp is really really a small space.
we enforce the use of tmp space dir as defined by TMPDIR that points to a fast scratch volume.
we teach our users to use -tmp option for their kma run, but we have problems running kma called by external tools in such setup.
I tried without succes to patch the code.
can you propose a solution ?
regards
Eric
Comments (5)
-
reporter -
reporter finaly got something. please review the attached patch.
regards
Eric
-
- changed status to resolved
Fixed issue
#51→ <<cset 091b8ffe66ac>>
-
Fixed issue
#51→ <<cset 6a90835e1d74>>
-
Hi Eric
I have TMPDIR to tmp.c, so that it checks if it exists and is set. That is if tmp-dir has not been set cmd-line, which overrules TMPDIR.
Best,
Philip - Log in to comment
</div> </form>