Also worth noting that creating a file in /tmp without O_EXCL is a security risk. See e.g. http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html
Also worth noting that creating a file in /tmp without O_EXCL is a security risk. See e.g. http:// www.dwheeler. com/secure- programs/ Secure- Programs- HOWTO/avoid- race.html