}
/*
- * Do .25 seconds of silence initially to give the workstation time to
+ * Do 0.25 seconds of silence initially to give the workstation time to
* get settled after the stress of starting this program and opening
* up everything.
*/
- tone (frequency, .25, 0.);
+ tone (frequency, 0.25, 0);
toneflush ();
if (typeaway)
static void
suspend (int sig)
{
-#ifdef SIGTSTP
- sigset (SIGTSTP, suspend); */
-#endif /* SIGTSTP */
+ struct sigaction handler;
+
+ handler.sa_mask = handler.sa_flags = 0;
+ handler.sa_handler = suspend;
+ sigaction (SIGTSTP, &handler, NULL);
cleanup ();
kill (getpid (), SIGSTOP);
if (termopen)