10 void have_a_very_merry_interrupt (void);
16 foo (); /* Put a breakpoint on foo() and call it to see a dummy frame */
19 have_a_very_merry_interrupt ();
21 puts ("Shutting down");
37 *nuller
= 'a'; /* try to cause a segfault */
46 /* The first statement in subroutine () is a place for a breakpoint.
47 Without it, the breakpoint is put on the while comparison and will
48 be hit at each iteration. */
59 have_a_very_merry_interrupt (void)
61 puts ("Waiting to get a signal");
62 signal (SIGALRM
, handler
);
64 sleep (2); /* We'll receive that signal while sleeping */