Just get the output once on sigpipe error, and include the fd
This commit was SVN r24092.
Этот коммит содержится в:
родитель
30c635fd4d
Коммит
71669720a3
@ -1058,16 +1058,10 @@ static int sigpipe_error_count=0;
|
|||||||
static void epipe_signal_callback(int fd, short flags, void *arg)
|
static void epipe_signal_callback(int fd, short flags, void *arg)
|
||||||
{
|
{
|
||||||
sigpipe_error_count++;
|
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) {
|
if (10 < sigpipe_error_count) {
|
||||||
/* time to abort */
|
/* 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);
|
abort_exit_callback(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user