Author: dmeyer
Date: Tue Jan 9 17:43:47 2007
New Revision: 2372
Modified:
trunk/base/src/extensions/inotify/__init__.py
Log:
Set fd paramater when we know it worked
Modified: trunk/base/src/extensions/inotify/__init__.py
==============================================================================
--- trunk/base/src/extensions/inotify/__init__.py (original)
+++ trunk/base/src/extensions/inotify/__init__.py Tue Jan 9 17:43:47 2007
@@ -80,11 +80,11 @@
self._moved_timer = kaa.notifier.WeakOneShotTimer(self._emit_last_move)
self._fd = _inotify.init()
- fcntl.fcntl(self._fd, fcntl.F_SETFL, os.O_NONBLOCK)
if self._fd < 0:
raise SystemError, "INotify support not detected on this system."
+ fcntl.fcntl(self._fd, fcntl.F_SETFL, os.O_NONBLOCK)
self._mon = kaa.notifier.WeakSocketDispatcher(self._handle_data)
self._mon.register(self._fd)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog