Bugtraq mailing list archives
Re: Race conditions
From: fred () nasirc hq nasa gov (Fred Blonder)
Date: Fri, 9 Dec 1994 15:19:52 -0500
From: rwing!pat () ole cdac com (Pat Myrto) And if a temp file MUST be made, use the mkstemp() call to generate the name and open it. Mkstemp() atomically generates the tempname from the template, opens the file and returns a handle. As the manpage says, mkstemp() eliminates the race condition between testing if a file exists, and the opening of the tmp file. But 'mkstemp()' is in section 3 of the manual; it's a subroutine, not a system call, so how can it be 'atomic'?
Current thread:
- Re: Race conditions, (continued)
- Re: Race conditions Christopher Samuel (Dec 09)
- Re: Race conditions Jason Matthews (Dec 08)
- Re: Race conditions Pat Myrto (Dec 09)
- Re: Race conditions, mkstemp Jonathan M. Bresler (Dec 10)
- Re: Race conditions, mkstemp Casper Dik (Dec 11)
- Re: Race conditions Pat Myrto (Dec 09)
- Re: Race conditions der Mouse (Dec 07)
- Re: Race conditions Jonathan M. Bresler (Dec 08)
- Re: Race conditions Jonas Sandberg (Dec 08)
- Re: Race conditions Christopher Samuel (Dec 12)
- Re: Race conditions Thomas Roessler (Dec 09)
- Re: Race conditions Fred Blonder (Dec 09)
- Re: Race conditions Pat Myrto (Dec 09)
- Re: Race conditions der Mouse (Dec 12)