File: sig_bug.c

package info (click to toggle)
bglibs 2.04%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,468 kB
  • sloc: ansic: 15,821; perl: 674; sh: 63; makefile: 29
file content (22 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <signal.h>
#include "sig.h"

void sig_bug_catch(signalfn fn)
{
  sig_catch(SIGILL, fn);
  sig_catch(SIGABRT, fn);
  sig_catch(SIGFPE, fn);
  sig_catch(SIGSEGV, fn);
#ifdef SIGEMT
  sig_catch(SIGEMT, fn);
#endif
#ifdef SIGBUS
  sig_catch(SIGBUS, fn);
#endif
#ifdef SIGSYS
  sig_catch(SIGSYS, fn);
#endif
#ifdef SIGSTKFLT
  sig_catch(SIGSTKFLT, fn);
#endif
}