please honour TMDIR if it is set when creatin tempfiles

Issue #51 resolved
Eric Deveaud created an issue

Hello,

related to #34 and #21

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)

  1. Eric Deveaud reporter
      <div class="preview-container wiki-content"><!-- loaded via ajax --></div>
      <div class="mask"></div>
    </div>
    

    </div> </form>

  2. ptlcc

    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

  3. Log in to comment