ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

hardcoded tempdir location breaks use of LDocs by multiple user accounts

Open gvvaughan opened this issue 10 years ago • 4 comments
trafficstars

Running LDoc always leaves a /tmp/ldoc directory, which prevents other users from running ldoc until that directory is manually removed due to cannot write to /tmp/ldoc error.

LDoc should certainly remove this tempdir before exiting, and ideally would name it using a unique suffix, such as the process-id or even a random number so that two or more users can run LDoc concurrently.

I dug around to try to find where this happens, but got lost in penlight before I was able to track it down.

gvvaughan avatar Jan 03 '15 15:01 gvvaughan

Good point, Gary! Penlight is the immediate culprit, but the main discipline we want is that it's (a) a semi-random number and (b) is removed afterwards. This should be straightforward. I'll have a look once I'm back in the country that contains all my machines.

On Sat, Jan 3, 2015 at 3:49 PM, Gary V. Vaughan [email protected] wrote:

Running LDoc always leaves a /tmp/ldoc directory, which prevents other users from running ldoc until that directory is manually removed due to cannot write to /tmp/ldoc error.

LDoc should certainly remove this tempdir before exiting, and ideally would name it using a unique suffix, such as the process-id or even a random number so that two or more users can run LDoc concurrently.

I dug around to try to find where this happens, but got lost in penlight before I was able to track it down.

— Reply to this email directly or view it on GitHub https://github.com/stevedonovan/LDoc/issues/195.

stevedonovan avatar Jan 03 '15 15:01 stevedonovan

awesome, tx :-)

gvvaughan avatar Jan 06 '15 03:01 gvvaughan

Sorry, I'm a really bad BDFL ;) Commit adds a mangled version of user's home directory to 'ldoc'

stevedonovan avatar Jun 27 '16 13:06 stevedonovan

life often gets in the way :-) Thanks for the first part of the fix.

Do we also still want to clear up the file droppings at the end of a successful ldocs run?

gvvaughan avatar Jun 27 '16 15:06 gvvaughan

Fixed in 2f71eab.

alerque avatar May 04 '23 20:05 alerque