#include /* standard unix functions, like getpid() */ #include /* various type definitions, like pid_t */ #include /* signal name macros, and the kill() prototype */ #include main (){ /* first, find my own process ID */ pid_t my_pid = getpid(); fprintf(stdout,"my pid is %d\n",my_pid); /* now that i got my PID, send myself the STOP signal. */ kill(my_pid, SIGSTOP); fprintf(stdout,"process %d is now finishing\n",my_pid); }