rmdel is already linked
[unix-history] / usr / src / usr.bin / systat / main.c
index 6efe8aa..d01b233 100644 (file)
@@ -1,6 +1,18 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)main.c     1.9 (Berkeley) %G%";
-#endif
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
+#ifndef lint
+static char sccsid[] = "@(#)main.c     5.2 (Berkeley) %G%";
+#endif not lint
 
 #include "systat.h"
 
 
 #include "systat.h"
 
@@ -24,6 +36,7 @@ int   naptime = 5;
 int     die();
 int     display();
 int     suspend();
 int     die();
 int     display();
 int     suspend();
+int    (*sigtstpdfl)();
 
 double ccpu;
 int     dellave;
 
 double ccpu;
 int     dellave;
@@ -119,7 +132,7 @@ main(argc, argv)
         dellave = 0.0;
 
         signal(SIGALRM, display);
         dellave = 0.0;
 
         signal(SIGALRM, display);
-        signal(SIGTSTP, suspend);
+        sigtstpdfl = signal(SIGTSTP, suspend);
         display();
         noecho();
         crmode();
         display();
         noecho();
         crmode();