On 25-10-2012 08:45:36 +0000, Zac Medico wrote: > URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=10b6d012 > > Add FEATURES=merge-sync, for bug #439584. > + if not self._device_path_map or \ > + "merge-sync" not in self.settings.features: > + return > + > + syncfs = self._get_syncfs() > + if syncfs is None: > + try: > + proc = subprocess.Popen(["sync"]) > + except EnvironmentError: > + pass > + else: > + proc.wait() > + else: > + for path in self._device_path_map.values(): > + try: > + fd = os.open(path, os.O_RDONLY) > + except OSError: > + pass > + else: > + try: > + syncfs(fd) can't you use os.fdatasync() or os.fsync() instead? -- Fabian Groffen Gentoo on a different level