Listing 3:
void noresponse()
{
   alarm(1);    /* Hit the snooze button */
   totsecs++;   /* Keep count of time passed */

   if((opts&DEBUG)||(opts&VERBOSE))
      printf("No response after %d seconds!\n",
             totsecs-1);

   if(totsecs>timeout)
   {
      printf("Connected to %s, but no response.\n",
             hostname,hostname);
      mypingexit(2);			   /* Exit CODE 2 */
   }
}
