1
1
This commit was SVN r4221.
Этот коммит содержится в:
Rainer Keller 2005-01-28 20:58:38 +00:00
родитель 418d184c45
Коммит f822ffc5ff
2 изменённых файлов: 2 добавлений и 18 удалений

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

@ -46,6 +46,7 @@
* @param info with information regarding the reason/send of the signal
* @param p
*
* FIXME: Should distinguish for systems, which don't have siginfo...
*/
#ifndef WIN32
static void ompi_show_stackframe (int signo, siginfo_t * info, void * p)
@ -60,7 +61,7 @@ static void ompi_show_stackframe (int signo, siginfo_t * info, void * p)
char * tmp = print_buffer;
int size = sizeof (print_buffer);
int ret;
char * str;
char * str="";
/*
* Yes, we are doing printf inside a signal-handler.

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

@ -21,23 +21,6 @@
#include <signal.h>
#endif
/**
* This function is being called as a signal-handler in response
* to a user-specified signal (e.g. SIGFPE or SIGSEGV).
* For Linux/Glibc, it then uses backtrace and backtrace_symbols
* to figure the current stack and then prints that out to stdout.
* Yes, printf and malloc are not signal-safe per se, but should be
* on Linux?
*
* @param signo with the signal number raised
* @param act with information regarding the reason/send of the signal
* @param oldact
*
*/
#ifndef WIN32
static void ompi_show_stackframe (int signo, siginfo_t * info, void * p);
#endif
/**
* Here we register the ompi_show_stackframe function for signals
* passed to OpenMPI by the mpi_signal-parameter passed to mpirun