summaryrefslogtreecommitdiffstats
path: root/contrib/top
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/top.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c
index e7e27d5..aaab027 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -70,7 +70,6 @@ int pcpu_stats = No;
/* signal handling routines */
sigret_t leave();
-sigret_t onalrm();
sigret_t tstop();
#ifdef SIGWINCH
sigret_t winch();
@@ -723,12 +722,7 @@ restart:
no_command = Yes;
if (!interactive)
{
- /* set up alarm */
- (void) signal(SIGALRM, onalrm);
- (void) alarm((unsigned)delay);
-
- /* wait for the rest of it .... */
- pause();
+ sleep(delay);
}
else while (no_command)
{
@@ -1174,11 +1168,3 @@ int status;
exit(status);
/*NOTREACHED*/
}
-
-sigret_t onalrm() /* SIGALRM handler */
-
-{
- /* this is only used in batch mode to break out of the pause() */
- /* return; */
-}
-
OpenPOWER on IntegriCloud