1
1

No group and lossy signals on Windows.

This commit was SVN r9160.
Этот коммит содержится в:
George Bosilca 2006-02-27 05:11:44 +00:00
родитель 4a0d9bd46f
Коммит a76213f352

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

@ -230,11 +230,12 @@ static void orte_iof_base_endpoint_write_handler(int sd, short flags, void *user
/* return true if we should read stdin from fd, false otherwise */ /* return true if we should read stdin from fd, false otherwise */
static bool orte_iof_base_endpoint_stdin_check(int fd) static bool orte_iof_base_endpoint_stdin_check(int fd)
{ {
#if !defined(__WINDOWS__)
if( isatty(fd) && (getpgrp() != tcgetpgrp(fd)) ) { if( isatty(fd) && (getpgrp() != tcgetpgrp(fd)) ) {
return false; return false;
} else {
return true;
} }
#endif /* !defined(__WINDOWS__) */
return true;
} }
@ -324,11 +325,13 @@ int orte_iof_base_endpoint_create(
between being backgrounded and not. If the between being backgrounded and not. If the
filedescriptor is not a tty, don't worry about it filedescriptor is not a tty, don't worry about it
and always stay connected. */ and always stay connected. */
#if !defined(__WINDOWS__)
opal_signal_set(&(endpoint->ep_stdin_event), opal_signal_set(&(endpoint->ep_stdin_event),
SIGCONT, SIGCONT,
orte_iof_base_endpoint_stdin_cb, orte_iof_base_endpoint_stdin_cb,
endpoint); endpoint);
opal_signal_add(&(endpoint->ep_stdin_event), NULL); opal_signal_add(&(endpoint->ep_stdin_event), NULL);
#endif /* !defined(__WINDOWS__) */
} }
/* always setup the event, but only add it if we should be /* always setup the event, but only add it if we should be