projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported from ../bash-1.14.7.tar.gz.
[platform/upstream/bash.git]
/
CWRU
/
misc
/
sigs.c
1
#include <signal.h>
2
#include <stdio.h>
3
4
extern char *sys_siglist[];
5
6
typedef void sighandler();
7
8
main(argc, argv)
9
int argc;
10
char **argv;
11
{
12
register int i;
13
sighandler *h;
14
15
for (i = 1; i < NSIG; i++) {
16
h = signal(i, SIG_DFL);
17
if (h != SIG_DFL) {
18
if (h == SIG_IGN)
19
fprintf(stderr, "%d: ignored (%s)\n", i, sys_siglist[i]);
20
else
21
fprintf(stderr, "%d: caught (%s)\n", i, sys_siglist[i]);
22
}
23
}
24
exit(0);
25
}
26
27