1
1

Just get the output once on sigpipe error, and include the fd

This commit was SVN r24092.
Этот коммит содержится в:
Ralph Castain 2010-11-25 15:32:48 +00:00
родитель 30c635fd4d
Коммит 71669720a3

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

@ -1058,16 +1058,10 @@ static int sigpipe_error_count=0;
static void epipe_signal_callback(int fd, short flags, void *arg)
{
sigpipe_error_count++;
if (1 == sigpipe_error_count) {
/* announce it */
OPAL_OUTPUT_VERBOSE((1, orte_debug_verbosity,
"%s reports a SIGPIPE error on fd %d",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), fd));
}
if (10 < sigpipe_error_count) {
/* time to abort */
opal_output(0, "%s: SIGPIPE detected - aborting", orte_basename);
opal_output(0, "%s: SIGPIPE detected on fd %d - aborting", orte_basename, fd);
abort_exit_callback(0, 0, 0);
}