Ticket #2779 defect new
os.setsid throws exception in PTYProcess on AIX
| Reported by: | chrispritchard | Owned by: | chrispritchard |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description
On the AIX platform it appears that if you have already used the TIOCNOTTY command to detach from the terminal you will get an exception thrown when doing an os.setsid() call, which causes the rest of the code in the child of the fork to be aborted. IIUC there is no need to do both of these types of detachment. Adding an else case to the
if hasattr(termios, 'TIOCNOTTY'):
containing the os.setsid() appears to fix the problem
Change History
Note: See
TracTickets for help on using
tickets.
