From a76213f352f50e0270324fe572ee1d782d3d70e7 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 27 Feb 2006 05:11:44 +0000 Subject: [PATCH] No group and lossy signals on Windows. This commit was SVN r9160. --- orte/mca/iof/base/iof_base_endpoint.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/orte/mca/iof/base/iof_base_endpoint.c b/orte/mca/iof/base/iof_base_endpoint.c index 213e855b29..d622030c81 100644 --- a/orte/mca/iof/base/iof_base_endpoint.c +++ b/orte/mca/iof/base/iof_base_endpoint.c @@ -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 */ static bool orte_iof_base_endpoint_stdin_check(int fd) { - if (isatty(fd) && (getpgrp() != tcgetpgrp(fd))) { +#if !defined(__WINDOWS__) + if( isatty(fd) && (getpgrp() != tcgetpgrp(fd)) ) { 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 filedescriptor is not a tty, don't worry about it and always stay connected. */ +#if !defined(__WINDOWS__) opal_signal_set(&(endpoint->ep_stdin_event), SIGCONT, orte_iof_base_endpoint_stdin_cb, endpoint); opal_signal_add(&(endpoint->ep_stdin_event), NULL); +#endif /* !defined(__WINDOWS__) */ } /* always setup the event, but only add it if we should be