- fix wrong write length, we have to write the amount of data that is used and not free
- replace numeric constant by symbolic name This commit was SVN r9288.
Этот коммит содержится в:
родитель
115a3cdd1a
Коммит
bfa59f07b3
@ -287,7 +287,7 @@ static void opal_show_stackframe (int signo, siginfo_t * info, void * p)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
write(1, print_buffer, size);
|
write(fileno(stderr), print_buffer, sizeof(print_buffer)-size);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
#ifdef HAVE_BACKTRACE
|
#ifdef HAVE_BACKTRACE
|
||||||
@ -300,7 +300,7 @@ static void opal_show_stackframe (int signo, siginfo_t * info, void * p)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
write(1, eof_msg, sizeof(eof_msg));
|
write(fileno(stderr), eof_msg, sizeof(eof_msg));
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user