diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-16 17:46:45 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-16 17:46:45 +0000 |
commit | f830a7f84dda931307785dd9653c3627c9cc6386 (patch) | |
tree | 333cb16ef36317812ee41013e6f99872bce439c3 /python/fuse.py | |
parent | 680a69a8be8b7dd9bf1beae4e48e927d0fb1cd7f (diff) | |
download | libfuse-f830a7f84dda931307785dd9653c3627c9cc6386.tar.gz |
multithreading works in Python
Diffstat (limited to 'python/fuse.py')
-rw-r--r-- | python/fuse.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/fuse.py b/python/fuse.py index ec40262..dff6f47 100644 --- a/python/fuse.py +++ b/python/fuse.py @@ -1,4 +1,10 @@ #!/usr/bin/env python +# +# Copyright (C) 2001 Jeff Epler <jepler@unpythonic.dhs.org> +# +# This program can be distributed under the terms of the GNU GPL. +# See the file COPYING. +# from _fuse import main, DEBUG import os @@ -23,8 +29,10 @@ class Fuse: 'chown', 'truncate', 'utime', 'open', 'read', 'write'] flags = 0 + multithreaded = 0 def main(self): d = {'flags': self.flags} + d['multithreaded'] = self.multithreaded for a in self._attrs: if hasattr(self,a): d[a] = ErrnoWrapper(getattr(self, a)) @@ -98,4 +106,5 @@ class Xmp(Fuse): if __name__ == '__main__': server = Xmp() server.flags = DEBUG + server.multithreaded = 1; server.main() |