]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[utils] Jython support - disable setproctitle() until ctypes is complete
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 20 Feb 2016 19:29:02 +0000 (03:29 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 20 Feb 2016 19:32:03 +0000 (03:32 +0800)
youtube_dl/utils.py

index 17747be26e30aaf22cc182847010f6dc6fd6a19a..16b4324a4d1d9c8203b83b9b15e22b793e2b2697 100644 (file)
@@ -1397,6 +1397,12 @@ def fix_xml_ampersands(xml_str):
 
 def setproctitle(title):
     assert isinstance(title, compat_str)
+
+    # ctypes in Jython is not complete
+    # http://bugs.jython.org/issue2148
+    if sys.platform.startswith('java'):
+        return
+
     try:
         libc = ctypes.cdll.LoadLibrary('libc.so.6')
     except OSError: