Ejemplo n.º 1
0
    def connectionLost(self, reason):
        """
		Release the inotify file descriptor and do the necessary cleanup
		"""
        FileDescriptor.connectionLost(self, reason)
        if self._fd >= 0:
            try:
                os.close(self._fd)
            except OSError, e:
                log.err(e, "Couldn't close INotify file descriptor.")
Ejemplo n.º 2
0
	def connectionLost(self, reason):
		"""
		Release the inotify file descriptor and do the necessary cleanup
		"""
		FileDescriptor.connectionLost(self, reason)
		if self._fd >= 0:
			try:
				os.close(self._fd)
			except OSError, e:
				log.err(e, "Couldn't close INotify file descriptor.")