Changeset 1568 for wine-doors

Show
Ignore:
Timestamp:
11/18/08 15:29:38 (2 months ago)
Author:
astormont
Message:

Fixed typo in winedoor.py error message

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wine-doors/trunk/src/winedoors.py

    r1495 r1568  
    2626from utils import ClearCache 
    2727 
     28# Change process name 
    2829try: 
    29     # Change process name from python to wine-doors 
     30    # Linux 
    3031    import dl 
    3132    libc = dl.open('/lib/libc.so.6') 
    3233    libc.call('prctl', 15, 'wine-doors', 0, 0, 0) 
    3334except: 
    34     from log import log 
    35     log.Warn("""Cannot process name.  Please file a bug report at  
    36                 http://www.wine-doors.org/trac/newticket. Include OS name and version.""") 
     35    try: 
     36        import ctypes 
     37        libc = ctypes.CDLL('libc.so.6') 
     38        libc.prctl(15, 'wine-doors', 0, 0, 0) 
     39    except: 
     40        try: 
     41            # BSD 
     42            import ctypes 
     43            libc = ctypes.CDLL('libc.so') 
     44            libc.setproctitle('wine-doors') 
     45        except: 
     46            # Fail 
     47            from log import log 
     48            log.Warn("""Cannot change process name.  Please file a bug report at  
     49         http://www.wine-doors.org/trac/newticket.  
     50         Include OS name and version. 
     51         This is a know issue on Solaris.""") 
    3752 
    3853def usage( name ):