1
1

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.


Thanks to Michal Peclo for reporting it and providing a patch.

cmr:v1.7.3:reviewer=jsquyres
cmr:v1.6.6:reviewer=jsquyres

This commit was SVN r29169.
Этот коммит содержится в:
Ralph Castain 2013-09-15 15:33:51 +00:00
родитель 52caa75552
Коммит 2680bff88e

Просмотреть файл

@ -94,6 +94,7 @@ orte_iof_base_setup_prefork(orte_iof_base_io_conf_t *opts)
#endif
if (ret < 0) {
opts->usepty = 0;
if (pipe(opts->p_stdout) < 0) {
ORTE_ERROR_LOG(ORTE_ERR_SYS_LIMITS_PIPES);
return ORTE_ERR_SYS_LIMITS_PIPES;