[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82
Michael 'Mickey' Lauer
mickey at vanille-media.de
Mon Feb 2 18:52:04 UTC 2009
The following commit has been merged in the master branch:
commit 8750588ca23b07336424a448cec656f2321f5d23
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Sat Jan 24 16:33:43 2009 +0100
kobject.py: kobject notifications might as well be longer than 512 bytes. Read larger buffer. Spotted by beniwtv, thanks a bunch!
diff --git a/framework/patterns/kobject.py b/framework/patterns/kobject.py
index d809b88..fec201b 100644
--- a/framework/patterns/kobject.py
+++ b/framework/patterns/kobject.py
@@ -10,10 +10,11 @@ Package: framework
Module: services
"""
-__version__ = "0.2.0"
+__version__ = "0.2.1"
MODULE_NAME = "frameworkd.kobject"
SYS_CLASS_NET = "/sys/class/net"
+BUFFER_SIZE = 2048
from cxnet.netlink.rtnl import rtnl_msg as RtNetlinkMessage
from cxnet.netlink.rtnl import rtnl_msg_parser as RtNetlinkParser
@@ -150,7 +151,7 @@ class KObjectDispatcher( object ):
"""
Run through callbacks and call, if applicable
"""
- data = os.read( source, 512 )
+ data = os.read( source, BUFFER_SIZE )
logger.debug( "Received kobject notification: %s" % repr(data) )
parts = data.split( '\0' )
action, path = parts[0].split( '@' )
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list