id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3025	race condition when creating tmp dir	Polynomial-C	andrew_b	"This bug was originally reported at [https://bugs.gentoo.org/461284]

When there's no mc-tmpdir and a user tries to start two mc sessions simultaneously, sometimes (in one out of ten attempts on my machine) one mc session emits the following error message:

{{{
Cannot create temporary directory /tmp/mc-lars: File exists (17)
Temporary files will be created in /tmp
Press any key to continue...
}}}

Steps to reproduce:
{{{
# rm /tmp/mc-$(whoami) -rf
# uxterm -e mc & uxterm -e mc
}}}
You may try any other terminal emulator but it should be one that doesn't take too long to start.

The reporter of the Gentoo bug also provided a patch (which I have attached to this bug) that seems to fix the problem."	defect	closed	minor	4.8.9	mc-core	4.8.8	fixed					merged	committed-master
