~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: INADA Naoki
  • Date: 2010-02-22 08:28:41 UTC
  • mto: (4634.141.1 2.0-integration)
  • mto: This revision was merged to the branch mainline in revision 5075.
  • Revision ID: songofacandy@gmail.com-20100222082841-mqbzd2allwtzpgok
Use O_NOINHERIT flag in AtomicFile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
        self.realfilename = filename
62
62
 
63
 
        flags = os.O_EXCL | os.O_CREAT | os.O_WRONLY
 
63
        flags = os.O_EXCL | os.O_CREAT | os.O_WRONLY | osutils.O_NOINHERIT
64
64
        if mode == 'wb':
65
65
            flags |= osutils.O_BINARY
66
66
        elif mode != 'wt':