Show
Ignore:
Timestamp:
01/09/11 19:37:51 (2 years ago)
Author:
mbutscher
Message:

branches/stable-2.0:
* Bug fixed: Windows: "Invalid handle" error on

command line bridge insertion plugins

branches/mbutscher/work:
* Write last writing program version into wiki db
* Several bug fixes with whoosh (index search)
* Index search: Highlight found terms and jump to

one found term on double-click

* Bug fixed: Windows: "Invalid handle" error on

command line bridge insertion plugins

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mbutscher/work/extensions/MimeTexCGIBridge.py

    r231 r234  
    103103        # Run MimeTeX process 
    104104        popenObject = subprocess.Popen(cmdline, shell=True, 
    105                 stdout=subprocess.PIPE) 
     105                 stdout=subprocess.PIPE, stdin=subprocess.PIPE, 
     106                 stderr=subprocess.PIPE) 
     107 
    106108        childOut = popenObject.stdout 
     109         
     110        # See http://bytes.com/topic/python/answers/634409-subprocess-handle-invalid-error 
     111        # why this is necessary 
     112        popenObject.stdin.close() 
     113        popenObject.stderr.close() 
    107114 
    108115        # Read stdout of process entirely