3 /* Signal handlers, we set breakpoints in them to make sure that the
4 signals really get delivered. */
432 /* Functions to send signals. These also serve as markers. */
436 kill (getpid (), SIGABRT
);
443 kill (getpid (), SIGHUP
);
453 kill (getpid (), SIGQUIT
);
463 kill (getpid (), SIGILL
);
473 kill (getpid (), SIGEMT
);
484 /* The intent behind generating SIGFPE this way is to check the mapping
485 from the CPU exception itself to the signals. It would be nice to
486 do the same for SIGBUS, SIGSEGV, etc., but I suspect that even this
487 test might turn out to be insufficiently portable. */
489 /* The expect script looks for the word "kill"; don't delete it. */
490 return 5 / x
; /* and we both started jumping up and down yelling kill */
497 kill (getpid (), SIGBUS
);
507 kill (getpid (), SIGSEGV
);
517 kill (getpid (), SIGSYS
);
527 kill (getpid (), SIGPIPE
);
537 kill (getpid (), SIGALRM
);
547 kill (getpid (), SIGURG
);
557 kill (getpid (), SIGTSTP
);
567 kill (getpid (), SIGCONT
);
577 kill (getpid (), SIGCHLD
);
587 kill (getpid (), SIGTTIN
);
597 kill (getpid (), SIGTTOU
);
607 kill (getpid (), SIGIO
);
617 kill (getpid (), SIGXCPU
);
627 kill (getpid (), SIGXFSZ
);
637 kill (getpid (), SIGVTALRM
);
647 kill (getpid (), SIGPROF
);
657 kill (getpid (), SIGWINCH
);
667 kill (getpid (), SIGLOST
);
677 kill (getpid (), SIGUSR1
);
687 kill (getpid (), SIGUSR2
);
697 kill (getpid (), SIGPWR
);
707 kill (getpid (), SIGPOLL
);
717 kill (getpid (), SIGWIND
);
727 kill (getpid (), SIGPHONE
);
737 kill (getpid (), SIGWAITING
);
747 kill (getpid (), SIGLWP
);
757 kill (getpid (), SIGDANGER
);
767 kill (getpid (), SIGGRANT
);
777 kill (getpid (), SIGRETRACT
);
787 kill (getpid (), SIGMSG
);
797 kill (getpid (), SIGSOUND
);
807 kill (getpid (), SIGSAK
);
817 kill (getpid (), SIGPRIO
);
827 kill (getpid (), 33);
837 kill (getpid (), 34);
847 kill (getpid (), 35);
857 kill (getpid (), 36);
867 kill (getpid (), 37);
877 kill (getpid (), 38);
887 kill (getpid (), 39);
897 kill (getpid (), 40);
907 kill (getpid (), 41);
917 kill (getpid (), 42);
927 kill (getpid (), 43);
937 kill (getpid (), 44);
947 kill (getpid (), 45);
957 kill (getpid (), 46);
967 kill (getpid (), 47);
977 kill (getpid (), 48);
987 kill (getpid (), 49);
997 kill (getpid (), 50);
1007 kill (getpid (), 51);
1017 kill (getpid (), 52);
1027 kill (getpid (), 53);
1037 kill (getpid (), 54);
1047 kill (getpid (), 55);
1057 kill (getpid (), 56);
1067 kill (getpid (), 57);
1077 kill (getpid (), 58);
1087 kill (getpid (), 59);
1097 kill (getpid (), 60);
1107 kill (getpid (), 61);
1117 kill (getpid (), 62);
1127 kill (getpid (), 63);
1136 kill (getpid (), SIGTERM
);
1142 signal (SIGABRT
, handle_ABRT
);
1144 signal (SIGHUP
, handle_HUP
);
1147 signal (SIGQUIT
, handle_QUIT
);
1150 signal (SIGILL
, handle_ILL
);
1153 signal (SIGEMT
, handle_EMT
);
1156 signal (SIGFPE
, handle_FPE
);
1159 signal (SIGBUS
, handle_BUS
);
1162 signal (SIGSEGV
, handle_SEGV
);
1165 signal (SIGSYS
, handle_SYS
);
1168 signal (SIGPIPE
, handle_PIPE
);
1171 signal (SIGALRM
, handle_ALRM
);
1174 signal (SIGURG
, handle_URG
);
1177 signal (SIGTSTP
, handle_TSTP
);
1180 signal (SIGCONT
, handle_CONT
);
1183 signal (SIGCHLD
, handle_CHLD
);
1186 signal (SIGTTIN
, handle_TTIN
);
1189 signal (SIGTTOU
, handle_TTOU
);
1192 signal (SIGIO
, handle_IO
);
1195 signal (SIGXCPU
, handle_XCPU
);
1198 signal (SIGXFSZ
, handle_XFSZ
);
1201 signal (SIGVTALRM
, handle_VTALRM
);
1204 signal (SIGPROF
, handle_PROF
);
1207 signal (SIGWINCH
, handle_WINCH
);
1210 signal (SIGLOST
, handle_LOST
);
1213 signal (SIGUSR1
, handle_USR1
);
1216 signal (SIGUSR2
, handle_USR2
);
1219 signal (SIGPWR
, handle_PWR
);
1222 signal (SIGPOLL
, handle_POLL
);
1225 signal (SIGWIND
, handle_WIND
);
1228 signal (SIGPHONE
, handle_PHONE
);
1231 signal (SIGWAITING
, handle_WAITING
);
1234 signal (SIGLWP
, handle_LWP
);
1237 signal (SIGDANGER
, handle_DANGER
);
1240 signal (SIGGRANT
, handle_GRANT
);
1243 signal (SIGRETRACT
, handle_RETRACT
);
1246 signal (SIGMSG
, handle_MSG
);
1249 signal (SIGSOUND
, handle_SOUND
);
1252 signal (SIGSAK
, handle_SAK
);
1255 signal (SIGPRIO
, handle_PRIO
);
1258 /* Lynx doesn't seem to have anything in signal.h for this. */
1259 signal (33, handle_33
);
1260 signal (34, handle_34
);
1261 signal (35, handle_35
);
1262 signal (36, handle_36
);
1263 signal (37, handle_37
);
1264 signal (38, handle_38
);
1265 signal (39, handle_39
);
1266 signal (40, handle_40
);
1267 signal (41, handle_41
);
1268 signal (42, handle_42
);
1269 signal (43, handle_43
);
1270 signal (44, handle_44
);
1271 signal (45, handle_45
);
1272 signal (46, handle_46
);
1273 signal (47, handle_47
);
1274 signal (48, handle_48
);
1275 signal (49, handle_49
);
1276 signal (50, handle_50
);
1277 signal (51, handle_51
);
1278 signal (52, handle_52
);
1279 signal (53, handle_53
);
1280 signal (54, handle_54
);
1281 signal (55, handle_55
);
1282 signal (56, handle_56
);
1283 signal (57, handle_57
);
1284 signal (58, handle_58
);
1285 signal (59, handle_59
);
1286 signal (60, handle_60
);
1287 signal (61, handle_61
);
1288 signal (62, handle_62
);
1289 signal (63, handle_63
);
1291 signal (SIGTERM
, handle_TERM
);
This page took 0.057958 seconds and 4 git commands to generate.