Home | History | Annotate | Line # | Download | only in c
      1 /* Basic kill functionality test; suicide.
      2 #xerror:
      3 #output: program stopped with signal 6 (*).\n
      4 */
      5 
      6 #include <stdio.h>
      7 #include <stdlib.h>
      8 #include <sys/types.h>
      9 #include <signal.h>
     10 #include <unistd.h>
     11 
     12 int
     13 main (void)
     14 {
     15   kill (getpid (), SIGABRT);
     16   printf ("undead\n");
     17   exit (1);
     18 }
     19