Next: sig_talk.c Up: Program Listings Previous: fork.c

signal.c


#include <signal.h>

main()
{
    signal(SIGINT, SIG_IGN);

    /*
     * pause() just suspends the process until a
     * signal is received.
     */
    pause();
}


Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994