warning to 32bit users
authorThomasV <thomasv@gitorious>
Sun, 8 Jul 2012 06:06:44 +0000 (10:06 +0400)
committerThomasV <thomasv@gitorious>
Sun, 8 Jul 2012 06:06:44 +0000 (10:06 +0400)
server.py

index c0a8300..d2ef9d6 100755 (executable)
--- a/server.py
+++ b/server.py
@@ -21,6 +21,10 @@ import ConfigParser
 import logging
 logging.basicConfig()
 
+if sys.maxsize <= 2**32:
+    print "Warning: it looks like you are using a 32bit system. You may experience crashes caused by mmap"
+
+
 def attempt_read_config(config, filename):
     try:
         with open(filename, 'r') as f: