tempnam/mktemp
Dave Bloom
dave at andromeda.UUCP
Wed Aug 21 09:18:55 AEST 1985
In article <458 at baylor.UUCP>, peter at baylor.UUCP (Peter da Silva) writes:
> If tempnam/mktemp does anything more than sprintf(fname, "/tmp/tmp%d%d",
> getpid(), cnt++), what it does escapes me. Perhaps someone out there could
> tell me how 2 processes can have the same pid? I deem to be missing something.
A tempfile from a previous go-around of pid's that was never removed could be
lying around (although it is unlikely). In that case the tempfile name might
not be unique. I'm sure with enough use it DOES happen!
_______________________________________________________________________________
UUCP: {allegra, seismo}!topaz!andromeda!dave Dave Bloom
WORK: (201) 648-5083
HOME: (201) 868-1764 "You're never alone with a schizophrenic...."
More information about the Comp.unix.wizards
mailing list