=======HPUX 11.23========== /home/kmiller/kev#cc -o trap01 trap01.c /home/kmiller/kev#trap01 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 0 Assertion failed: 0, file trap01.c, line 38 ABORT instruction (core dumped) /home/kmiller/kev#trap01 1 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 1 Assertion failed: 0, file trap01.c, line 38 Trap sig 6 -- do cleanup ABORT instruction (core dumped) /home/kmiller/kev#trap01 2 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 2 Assertion failed: 0, file trap01.c, line 38 Trap sig 6 -- do cleanup Return from assert (0) --Done /home/kmiller/kev# =========RH Linux 2.6.18-194.3.1.el5 i686 i386 GNU/Linux========= /home/kmiller/kev#cc -o trap01 trap01.c /home/kmiller/kev#trap01 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 0 trap01: trap01.c:38: main: Assertion `0' failed. Abort /home/kmiller/kev#trap01 1 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 1 trap01: trap01.c:38: main: Assertion `0' failed. Trap sig 6 -- do cleanup Abort /home/kmiller/kev#trap01 2 ---Trap01 assert(0) test. Run with no parm, let assert() do abort Run with parm 1, trap SIGABRT from abort() Run with parm 2, trap SIGABRT, longjmp back Assert test 2 trap01: trap01.c:38: main: Assertion `0' failed. Trap sig 6 -- do cleanup Return from assert (0) --Done /home/kmiller/kev#