Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI devel] [PATCH] orte: Do not call tcgetattr on pipe descriptor
From: Michał Pecio (michal.pecio_at_[hidden])
Date: 2013-09-10 16:40:31

The function orte_iof_base_setup_prefork attempts to create a pty for
child stdout and falls back to plain pipe if openpty fails. Child uses
the 'usepty' flag to decide whether to treat this descriptor as a pty
or as a pipe.
Set 'usepty' flag to 0 upon openpty failure to inform the child that
it isn't dealing with a pty even though pty has been requested.

Patch applies against svn trunk and v1.6.5, where I found this issue.

Index: orte/mca/iof/base/iof_base_setup.c
--- orte/mca/iof/base/iof_base_setup.c (revision 29155)
+++ orte/mca/iof/base/iof_base_setup.c (working copy)
@@ -94,6 +94,7 @@
     if (ret < 0) {
+ opts->usepty = 0;
         if (pipe(opts->p_stdout) < 0) {
             return ORTE_ERR_SYS_LIMITS_PIPES;