~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2013-05-23 08:25:07 UTC
  • mto: (6015.57.6 2.4)
  • mto: This revision was merged to the branch mainline in revision 6575.
  • Revision ID: john@arbash-meinel.com-20130523082507-n5cv7q11uemvkaii
Found it called EOPNOTSUPP on a platform, include that spelling as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2522
2522
else:
2523
2523
    is_local_pid_dead = _posix_is_local_pid_dead
2524
2524
 
2525
 
_fdatasync_ignored = [getattr(errno, name)
2526
 
                      for name in ['EAGAIN', 'EINTR', 'ENOTSUP', 'EACCES']
 
2525
_maybe_ignored = ['EAGAIN', 'EINTR', 'ENOTSUP', 'EOPNOTSUPP', 'EACCES']
 
2526
_fdatasync_ignored = [getattr(errno, name) for name in _maybe_ignored
2527
2527
                      if getattr(errno, name, None) is not None]
2528
2528
 
 
2529
 
2529
2530
def fdatasync(fileno):
2530
2531
    """Flush file contents to disk if possible.
2531
2532