| 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.""") |
|---|